/* ============================================================
   ThailandHotelJob.com — Minimal Modern Design System
   Inspired by Apple.com — clean, spacious, typography-first
   ============================================================ */

:root {
  --primary: #0071E3;
  --primary-dark: #0058B0;
  --primary-light: #E8F2FE;
  --accent: #BF8A30;
  --bg: #FFFFFF;
  --surface: #FBFBFD;
  --surface-hover: #F5F5F7;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-light: #86868B;
  --border: #D2D2D7;
  --border-light: #E8E8ED;
  --success: #28CD41;
  --success-bg: #EDFBF0;
  --warning: #FF9F0A;
  --warning-bg: #FFF8EC;
  --danger: #FF3B30;
  --danger-bg: #FFF0EF;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --font: 'Inter', 'Anuphan', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
}
.nav-container { display: flex; align-items: center; height: 52px; gap: 20px; flex-wrap: nowrap; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--text); letter-spacing: -0.01em; flex-shrink: 0; white-space: nowrap; }
.nav-logo:hover { color: var(--text); }
.logo-icon { font-size: 1.2rem; }
.logo-mark { display: inline-flex; flex-shrink: 0; }
.logo-mark svg, .logo-mark img { display: block; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,90,200,0.30), 0 1px 2px rgba(0,0,0,0.08); }
.logo-text { font-weight: 400; color: var(--text-secondary); }
.logo-text strong { color: var(--text); font-weight: 600; }
.logo-tld { color: var(--primary); font-weight: 600; }
.logo-slogan {
  font-size: 0.74rem;
  color: var(--text-light);
  font-weight: 500;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 10px; margin: 0 auto; }
.nav-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-auth .btn, .nav-auth .nav-link { white-space: nowrap; }
/* Search box inside the navbar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 980px;
  height: 34px;
  width: 320px;
  max-width: 36vw;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.nav-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--font); font-size: 0.82rem; padding: 0 6px 0 16px; color: var(--text);
}
.nav-search input::placeholder { color: var(--text-light); }
.nav-search button {
  flex-shrink: 0; border: none; cursor: pointer;
  width: 38px; height: 100%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nav-search button:hover { background: var(--primary-dark); }
.nav-link {
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-link.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 6px; color: var(--text-secondary); }
.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.nav-user-name { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.nav-logout { color: var(--text-light) !important; font-size: 0.78rem !important; }
.nav-register-group { display: flex; gap: 8px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  border-radius: 980px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-sm { padding: 6px 16px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; font-weight: 600; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A67720; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }

/* ---- HERO SCREEN (single viewport, no scroll) ---- */
.hero-screen {
  height: calc(100vh - 52px);
  min-height: 600px;
  max-height: 880px;
  background: radial-gradient(120% 90% at 80% 0%, #F0F6FF 0%, var(--bg) 55%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-screen-grid {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 40px 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.14fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}

/* Left — big map filling the column */
.hero-map-side {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.map-wrapper { position: relative; width: 100%; height: 100%; }

/* Center / right columns */
.hero-center, .hero-latest { min-width: 0; }
.dest-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 980px;
  margin-bottom: 18px;
}
.hero-center { text-align: left; display: flex; flex-direction: column; justify-content: center; }
.hero-center h1 {
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 12px;
  color: var(--text);
}
.hero-center .hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
  margin-bottom: 26px;
}
.hero-allprov {
  display: inline-block;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.hero-allprov:hover { text-decoration: underline; }
.hero-center h1 span {
  background: linear-gradient(135deg, var(--primary), #00C6FB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dest-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Center — popular province cards (compact, 2-col, with photo) */
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prov-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
}
.prov-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.15) 100%);
}
.prov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prov-th { color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em; text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.15; }
.prov-count {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.66rem; font-weight: 700; color: #fff;
  background: rgba(0,113,227,0.95); padding: 1px 7px; border-radius: 980px;
}

/* Recommended hotels (in the centre column) */
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rec-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 8px; min-width: 0;
  padding: 6px 9px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.rec-card:hover { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rec-card:hover .rec-name { color: #fff; }
.rec-card:hover .rec-count { color: rgba(255,255,255,0.9); }
/* VIP (paid/sponsored) recommended hotels — white card, blue border; blue on hover */
.rec-card.vip {
  align-items: flex-start;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.rec-card.vip:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.rec-logo {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 7px; background: #fff; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rec-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.rec-info { min-width: 0; display: flex; flex-direction: column; }
.rec-name { font-size: 0.72rem; font-weight: 600; color: var(--text); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rec-card.vip .rec-name { -webkit-line-clamp: 2; }
.dest-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dest-head-row .hero-latest-all { white-space: nowrap; flex-shrink: 0; }
.rec-count { font-size: 0.64rem; color: var(--primary); font-weight: 600; }

/* Right — latest jobs list (1 per hotel) */
.hero-latest-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hero-latest-all { font-size: 0.8rem; font-weight: 500; color: var(--primary); }
.hero-latest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-job {
  display: flex; align-items: flex-start; gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.hero-job { position: relative; }
/* Hot Job (sponsored) — white card, blue border; blue on hover */
.hero-job.hot {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.hot-badge {
  position: absolute;
  top: -8px; right: 8px;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(135deg, #0A2540, #0057C8);
  padding: 2px 7px; border-radius: 980px;
  box-shadow: 0 2px 5px rgba(0,60,160,0.4);
  line-height: 1.3;
}
.hero-job:hover { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hero-job.hot:hover { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-md); }
.hero-job:hover .hero-job-title { color: #fff; }
.hero-job:hover .hero-job-hotel { color: rgba(255,255,255,0.85); }
.hero-job:hover .hero-job-logo { background: #fff; border-color: rgba(255,255,255,0.6); }
.hero-job-logo {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 7px; background: #fff; border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hero-job-logo b { color: var(--text-light); font-size: 0.72rem; }
.hero-job-info { min-width: 0; display: flex; flex-direction: column; }
.hero-job-title {
  font-size: 0.72rem; font-weight: 600; color: var(--text); line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-job-hotel {
  font-size: 0.64rem; color: var(--text-secondary); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
/* Recommend (highlighted) cards show fuller info: 2 + 2 lines */
.hero-job.hot .hero-job-title { -webkit-line-clamp: 2; }
.hero-job.hot .hero-job-hotel { -webkit-line-clamp: 2; }

/* Destination picker grid */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Photo layer (zooms on hover) */
.dest-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
/* Dark gradient overlay for text legibility */
.dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.12) 100%);
}
.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.dest-card:hover::after { transform: scale(1.08); }
.dest-bkk::after     { background-image: url(/images/cities/bangkok.jpg); }
.dest-phuket::after  { background-image: url(/images/cities/phuket.jpg); }
.dest-samui::after   { background-image: url(/images/cities/samui.jpg); }
.dest-pattaya::after { background-image: url(/images/cities/pattaya.jpg); }
.dest-krabi::after   { background-image: url(/images/cities/krabi.jpg); }
.dest-cm::after      { background-image: url(/images/cities/chiangmai.jpg); }
.dest-info { display: flex; flex-direction: column; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.dest-th { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.dest-en { font-size: 0.72rem; opacity: 0.85; font-weight: 500; }
.dest-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,113,227,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  padding: 2px 9px;
  border-radius: 980px;
}

/* Search bar — Apple style */
.search-bar {
  display: flex;
  gap: 0;
  width: 100%;
  margin: 0 0 28px;
  background: var(--surface);
  border-radius: 980px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,113,227,0.1); }
.search-bar input, .search-bar select {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  background: transparent;
  min-width: 0;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar select { flex: 0 0 160px; border-left: 1px solid var(--border-light); cursor: pointer; color: var(--text-secondary); }
.search-bar .btn { border-radius: 0 980px 980px 0; padding: 14px 28px; flex-shrink: 0; }

/* Map */
.map-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 24px rgba(0,80,180,0.10)); }
.map-badge { cursor: pointer; }
.map-svg path {
  fill: #E9EDF3;
  stroke: #fff;
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill 0.2s ease;
}
.map-svg path:hover { fill: #BFD9F9; }
.map-svg path.has-jobs-1 { fill: #C9DFFC; }
.map-svg path.has-jobs-2 { fill: #93BFFA; }
.map-svg path.has-jobs-3 { fill: #5B9FF5; }
.map-svg path.has-jobs-4 { fill: var(--primary); }

/* Count badges on map */
.map-badge circle {
  fill: var(--text);
  stroke: #fff;
  stroke-width: 1.5;
  transition: fill 0.15s ease;
}
.map-badge:hover circle { fill: var(--primary); }
.map-badge text {
  fill: #fff;
  font-family: var(--font);
  font-weight: 700;
  pointer-events: none;
}

/* Bangkok highlight */
.map-bkk-halo {
  fill: var(--primary);
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: bkkPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes bkkPulse {
  0%   { transform: scale(0.55); opacity: 0.5; }
  70%  { opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}
.map-bkk-dot { fill: var(--primary); stroke: #fff; stroke-width: 2.5; }
.map-bkk:hover .map-bkk-dot { fill: var(--primary-dark); }
.map-bkk-num { fill: #fff; font-family: var(--font); font-weight: 700; font-size: 24px; pointer-events: none; }
.map-bkk-chip { fill: #1d1d1f; }
.map-bkk-label { fill: #fff; font-family: var(--font); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; pointer-events: none; }

/* Map hover popup — image card with province name + job count */
.map-tooltip {
  position: fixed;
  width: 200px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.map-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }
.map-tooltip img { width: 100%; height: 96px; object-fit: cover; display: block; }
.map-tip-body { padding: 10px 14px 12px; }
.map-tip-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.map-tip-count { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-top: 2px; }

/* Map controls */
.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.map-zoom-btn {
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.map-zoom-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Region cards (mobile) */
.region-cards { display: none; }
.region-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.region-card:hover { border-color: var(--primary); background: var(--primary-light); }
.region-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.region-card .count { color: var(--primary); font-weight: 600; font-size: 0.85rem; }

/* ---- BRAND LOGOS ROW ---- */
.brands-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.brands-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 20px;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brands-row img {
  height: 28px;
  opacity: 0.45;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}
.brands-row img:hover { opacity: 0.85; filter: grayscale(0%); }

/* Full-width auto-scrolling brands marquee inside the hero */
.hero-brands {
  flex-shrink: 0;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border-light);
}
.hero-brands .brands-label { margin-bottom: 12px; }
.brands-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: brands-scroll 140s linear infinite;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-track .hotel-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 7px 18px 7px 9px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 980px;
  text-decoration: none;
  color: #1d1d1f;
  transition: border-color var(--transition), transform var(--transition);
}
.brands-track .hotel-chip:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.brands-track .hotel-chip:hover span { color: #fff; }
.brands-track .hotel-chip img { height: 22px; width: 22px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 5px; }
.brands-track .hotel-chip span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  letter-spacing: -0.015em;
}
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* ---- SECTION LAYOUT ---- */
.section { padding: 72px 0; }
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 40px;
}
.section-header h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-header a { font-size: 0.92rem; font-weight: 500; color: var(--primary); }
.section-header a:hover { text-decoration: underline; }

/* ---- APPLE-STYLE FEATURE BLOCKS ---- */
.feature-block {
  padding: 80px 24px;
  text-align: center;
}
.feature-block.light { background: var(--surface); color: var(--text); }
.feature-block.dark  { background: #000; color: #f5f5f7; }
.feature-eyebrow {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--primary);
  margin-bottom: 6px;
}
.feature-block h2 {
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.feature-block p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 600px;
  margin: 0 auto 26px;
}
.feature-block.dark p { color: #c7c7cc; }
.feature-block.light p { color: var(--text-secondary); }
.feature-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Outline pill for dark backgrounds (Apple dark-mode blue) */
.btn-outline-blue {
  background: transparent;
  color: #2997FF;
  border-color: #2997FF;
}
.btn-outline-blue:hover { background: #2997FF; color: #fff; }

/* ---- PROVINCE HERO BANNER (/jobs?province=) ---- */
.province-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}
.province-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.1) 100%);
}
.province-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.province-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 10px;
}
.province-hero-inner h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.province-hero-inner p { font-size: 1.05rem; font-weight: 500; opacity: 0.95; }

/* ---- CHAIN / HOTEL HERO BANNER ---- */
.chain-hero {
  background: linear-gradient(120deg, #0A2540 0%, #0071E3 100%);
  color: #fff;
}
.chain-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.chain-hero-logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.chain-hero-logo img { max-width: 60px; max-height: 60px; object-fit: contain; }
.chain-hero-text .province-hero-eyebrow { background: rgba(255,255,255,0.22); color: #fff; }
.chain-hero-text h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 8px; }
.chain-hero-text p { font-size: 1.02rem; font-weight: 500; opacity: 0.92; }
.chain-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chain-hero-meta span {
  font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.18); padding: 4px 12px; border-radius: 980px;
}
.chain-hero-claim { background: #fff; color: var(--primary); font-weight: 600; }
.chain-hero-claim:hover { background: #f0f0f5; color: var(--primary-dark); }

/* ---- HOTEL PROFILE (official info: photo, address, contact) ---- */
.hotel-profile {
  position: relative;
  background: linear-gradient(120deg, #0A2540 0%, #0071E3 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0;
}
.hotel-profile.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,34,0.55) 0%, rgba(8,18,34,0.82) 100%);
}
.hotel-profile-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 36px;
}
.hotel-profile-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}
.hotel-profile-logo img { max-width: 52px; max-height: 52px; object-fit: contain; }
.hotel-profile .province-hero-eyebrow { background: rgba(255,255,255,0.22); color: #fff; }
.hotel-profile h1 {
  font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12; margin: 8px 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hotel-profile .chain-hero-meta { margin-bottom: 14px; }
.hotel-profile .chain-hero-meta span { background: rgba(255,255,255,0.18); }
.hotel-profile-desc {
  max-width: 720px; font-size: 0.98rem; line-height: 1.55;
  opacity: 0.95; margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hotel-profile-addr {
  font-size: 0.9rem; opacity: 0.92; margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hotel-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.btn-contact { background: rgba(255,255,255,0.16); color: #fff; font-weight: 600; backdrop-filter: blur(6px); }
.btn-contact:hover { background: rgba(255,255,255,0.28); color: #fff; }
.hotel-profile-claim {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: #fff; opacity: 0.9; text-decoration: underline; text-underline-offset: 3px;
}
.hotel-profile-claim:hover { opacity: 1; }

/* ---- DEPARTMENT BOOKS (HotelXcademy, matched by department) ---- */
.dept-books {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.dept-books-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dept-books-head span { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.dept-books-head a { font-size: 0.8rem; font-weight: 500; color: var(--primary); flex-shrink: 0; }
.dept-books-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dept-book { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.dept-book img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 6px; transition: transform var(--transition); }
.dept-book:hover img { transform: translateY(-3px); }
.dept-book-title { font-size: 0.72rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dept-book-price { font-size: 0.74rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
@media (max-width: 768px) { .dept-books-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- DEPT AD (HotelXcademy, footer-style dark card, labeled Advertised) ---- */
.dept-ad {
  background: linear-gradient(135deg, #1D1D1F 0%, #2D2D30 100%);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  margin-bottom: 24px;
}
.dept-ad-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dept-ad-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; background: rgba(255,255,255,0.18); padding: 3px 9px; border-radius: 980px;
}
.dept-ad-brand { font-size: 0.84rem; color: #c7c7cc; font-weight: 500; }
.dept-ad-row {
  justify-content: flex-start;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dept-ad-row::-webkit-scrollbar { display: none; }
.dept-ad-row .book-slide { flex: 0 0 124px; max-width: 124px; }
.dept-ad-row .book-slide img { margin-bottom: 8px; }

/* ---- HOTEL CHAIN GRID ---- */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.chain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.chain-card:hover { border-color: var(--border); background: #fff; box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.chain-logo { height: 40px; display: flex; align-items: center; justify-content: center; }
.chain-logo img { max-height: 40px; max-width: 120px; width: auto; object-fit: contain; }
.chain-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.chain-count { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ---- DEPARTMENT HIGHLIGHT BANDS (alternating) ---- */
.dept-band {
  padding: 64px 24px;
  text-align: center;
}
.dept-band.light { background: var(--surface); color: var(--text); }
.dept-band.dark  { background: #000; color: #f5f5f7; }
.dept-band-ic { display: inline-block; margin-bottom: 18px; }
.dept-band-ic .dept-ic { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0,0,0,0.28); }
.dept-band h2 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.dept-band p {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 22px;
}
.dept-band.dark p { color: #a1a1a6; }
.dept-band.light p { color: var(--text-secondary); }

/* ---- Department feature (photo background + sample jobs) ---- */
.dept-feature { }
.dept-feature-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dept-feature-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.68) 100%);
}
.dept-feature-hero-inner {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 28px 24px;
}
.dept-feature-hero-inner h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.dept-feature-hero-inner p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.dept-feature-jobs {
  padding: 26px 0 30px;
  background: var(--surface);
}
.dept-feature:nth-of-type(even) .dept-feature-jobs { background: #fff; }
.dept-jobs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.dept-job {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.dept-job:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border-color: transparent;
}
.dept-job-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dept-job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dept-job-logo b { font-size: 1.4rem; color: var(--text-secondary); }
.dept-job-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.32;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dept-job-title:hover { color: var(--primary); }
.dept-job-hotel {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.dept-job-hotelname { color: var(--text-secondary); text-decoration: none; }
.dept-job-hotelname:hover { color: var(--primary); text-decoration: underline; }
.dept-job-prov {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.dept-job-prov:hover { text-decoration: underline; }
.dept-jobs-more-wrap {
  text-align: center;
  margin-top: 26px;
}
@media (max-width: 1100px) { .dept-jobs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .dept-jobs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .dept-jobs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .dept-jobs-grid { grid-template-columns: 1fr; } }

/* ---- DARK SECTION (Apple-style premium block) ---- */
.section-dark { background: #000; color: #f5f5f7; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header a { color: #2997FF; }
.section-dark .job-card {
  background: #1c1c1e;
  border-color: #2c2c2e;
}
.section-dark .job-card:hover { border-color: #48484a; box-shadow: 0 8px 28px rgba(0,0,0,0.5); }
.section-dark .job-card-title a { color: #f5f5f7; }
.section-dark .job-card-title a:hover { color: #2997FF; }
.section-dark .job-card-hotel { color: #a1a1a6; }
.section-dark .job-card-logo { background: #2c2c2e; border-color: #3a3a3c; }
.section-dark .job-card-logo .brand-icon { color: #8e8e93; }
.section-dark .tag { background: #2c2c2e; color: #c7c7cc; }
.section-dark .job-card-footer { border-top-color: #2c2c2e; }
.section-dark .job-card-date { color: #8e8e93; }
/* dark department tiles */
.section-dark .dept-card {
  background: #1c1c1e;
  border-color: #2c2c2e;
  color: #f5f5f7;
}
.section-dark .dept-card:hover { background: #2c2c2e; border-color: #48484a; box-shadow: none; color: #fff; }
.section-dark .dept-card .name { color: #f5f5f7; }

/* ---- DEPARTMENT GRID ---- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.dept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.dept-card:hover { border-color: var(--border); background: #fff; box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.dept-card .icon { font-size: 1.2rem; }
.dept-ic-wrap { display: inline-flex; flex-shrink: 0; }
.dept-photo-wrap { display: inline-flex; flex-shrink: 0; }
.dept-photo {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: 20px; display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform var(--transition);
}
.dept-card:hover .dept-photo { transform: translateY(-2px) scale(1.04); }
.dept-ic { display: block; width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); transition: transform var(--transition); }
.dept-card:hover .dept-ic { transform: translateY(-2px) scale(1.04); }
.dept-card .name { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }

/* ---- JOB CARDS ---- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.job-card.hot-job { position: relative; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.job-hot-badge {
  position: absolute; top: -9px; left: 16px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(135deg, #0A2540, #0057C8);
  padding: 3px 10px; border-radius: 980px; box-shadow: 0 2px 6px rgba(0,60,160,0.4);
}
.job-card-header { display: flex; gap: 12px; align-items: flex-start; }
.job-card-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.job-card-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.job-card-logo .brand-icon { font-size: 0.7rem; font-weight: 700; color: var(--text-light); letter-spacing: 0.02em; text-align: center; line-height: 1.2; }
.job-card-info { flex: 1; min-width: 0; }
.job-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.job-card-title a { color: var(--text); }
.job-card-title a:hover { color: var(--primary); }
.job-card-hotel { font-size: 0.82rem; color: var(--text-secondary); }
.hotel-link { color: var(--text-secondary); font-weight: 500; }
.hotel-link:hover { color: var(--primary); text-decoration: underline; }
.job-card-hotel .stars { color: var(--accent); font-size: 0.75rem; }
.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 980px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}
.job-card-salary {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B873F;
}
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.job-card-date { font-size: 0.75rem; color: var(--text-light); }
.badge-urgent {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 980px;
}
.badge-agg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 980px;
}
.badge-agg img { height: 12px; border-radius: 2px; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group label .required { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  transition: border-color var(--transition);
  background: #fff;
  color: var(--text);
}
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(0,113,227,0.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* ---- CARDS & PANELS ---- */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.card-header h2 { font-size: 1.15rem; font-weight: 600; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-secondary); }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.85rem; }
th { font-weight: 600; color: var(--text-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover td { background: var(--surface); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-success { background: var(--success-bg); color: #1B873F; }
.badge-warning { background: var(--warning-bg); color: #B45309; }
.badge-danger { background: var(--danger-bg); color: #CC1B10; }
.badge-info { background: var(--primary-light); color: var(--primary); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- FILTERS SIDEBAR ---- */
.page-with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.sidebar { position: sticky; top: 68px; align-self: start; }
.filter-group { margin-bottom: 20px; }
.filter-group h3 { font-size: 0.72rem; font-weight: 600; margin-bottom: 8px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- JOB DETAIL ---- */
.job-detail-header { display: flex; gap: 20px; padding: 40px 0 32px; }
.job-detail-logo {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.job-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-detail-info h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.job-detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---- RESUME ---- */
.resume-section { margin-bottom: 24px; }
.resume-section h3 {
  font-size: 0.95rem; font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 12px;
}
.resume-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.resume-item:last-child { border-bottom: none; }
.resume-photo { width: 120px; height: 150px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border-light); }

/* ---- DASHBOARD ---- */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.dashboard-header h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---- AUTH PAGES ---- */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 52px - 200px);
  padding: 48px 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 28px; font-size: 0.88rem; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid var(--border); border-radius: 980px; overflow: hidden; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.auth-tab.active, .auth-tab:hover { background: var(--primary); color: #fff; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--text-light); font-size: 0.82rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border-light); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

/* ---- ALERT ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: #CC1B10; border: 1px solid #FECACA; }
.alert-success { background: var(--success-bg); color: #1B873F; border: 1px solid #A7F3D0; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-secondary); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; font-weight: 600; }

/* ---- APPLICANT CARDS ---- */
.applicant-card {
  display: flex; gap: 16px; padding: 16px;
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 10px; align-items: center;
}
.applicant-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.applicant-info { flex: 1; }
.applicant-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.tab {
  padding: 10px 20px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--text); }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--surface);
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cta-section p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1rem; }

/* ---- BOOK CAROUSEL AD ---- */
.book-ad {
  background: linear-gradient(135deg, #1D1D1F 0%, #2D2D30 100%);
  padding: 48px 0;
}
.book-ad-header {
  text-align: center;
  margin-bottom: 32px;
}
.book-ad-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.book-ad-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.book-ad-subtitle {
  font-size: 0.9rem;
  color: #86868B;
}
.book-carousel-wrapper {
  position: relative;
}
.book-carousel {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 8px 0;
}
.book-slide {
  flex: 1 1 0;
  max-width: 160px;
  text-decoration: none;
  color: #F5F5F7;
  transition: transform var(--transition);
}
.book-slide:hover { transform: translateY(-4px); color: #FFFFFF; }
.book-slide img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}
.book-slide-info { padding: 0 2px; }
.book-slide-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-slide-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-original {
  font-size: 0.75rem;
  color: #6E6E73;
  text-decoration: line-through;
}
.price-current {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.carousel-btn { display: none; }
.book-ad-cta {
  text-align: center;
  margin-top: 28px;
}
.btn-outline-light {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 980px;
  color: #F5F5F7;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 12px; }
.footer-col p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.footer-col a { display: block; color: var(--text-secondary); padding: 3px 0; font-size: 0.82rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-light); color: var(--text-light); font-size: 0.75rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
  .nav-search { width: 100%; max-width: none; height: 40px; }
  .nav-auth { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-toggle { display: block; margin-left: auto; }
  .logo-slogan { display: none; }

  /* Hero: stack to natural height, hide map */
  .hero-screen { height: auto; max-height: none; min-height: 0; padding: 40px 0 8px; }
  .hero-screen-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
  .hero-map-side { display: none; }
  .hero-center h1 { font-size: 2rem; }
  .hero-latest-list { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .rec-grid { grid-template-columns: 1fr; }

  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-bar .btn { border-radius: 0 0 var(--radius) var(--radius); }
  .region-cards { display: none; }

  .section-header h2 { font-size: 1.65rem; }
  .feature-block { padding: 56px 20px; }
  .feature-block h2 { font-size: 1.9rem; }
  .feature-block p { font-size: 1.05rem; }
  .dept-band { padding: 48px 20px; }
  .dept-band h2 { font-size: 1.75rem; }
  .dept-band-ic .dept-ic { width: 72px; height: 72px; border-radius: 18px; }
  .province-hero { min-height: 200px; }
  .province-hero-inner h1 { font-size: 1.7rem; }
  .chain-hero-inner { padding: 28px 20px; gap: 16px; }
  .chain-hero-logo { width: 66px; height: 66px; border-radius: 16px; }
  .chain-hero-logo img { max-width: 44px; max-height: 44px; }
  .chain-hero-text h1 { font-size: 1.5rem; }

  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .job-grid { grid-template-columns: 1fr; }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .job-detail-header { flex-direction: column; }
  .applicant-card { flex-direction: column; align-items: flex-start; }
  .applicant-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .brands-row { gap: 24px; }
  .brands-row img { height: 22px; }
  .book-ad { padding: 32px 0; }
  .book-ad-header h3 { font-size: 1.2rem; }
  .book-carousel { gap: 10px; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .book-carousel::-webkit-scrollbar { display: none; }
  .book-slide { flex: 0 0 120px; }
}

@media (max-width: 480px) {
  .hero-center h1 { font-size: 1.9rem; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- LOADING ---- */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
