/* ============================================================
   HoteliersClub v2 — Layout System
   ============================================================ */

/* ── Container ─────────────────────────────────────────── */
.container    { width: 100%; max-width: var(--container);    margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.container-lg { width: 100%; max-width: var(--container-lg); margin: 0 auto; padding: 0 24px; }

/* ── Sections ──────────────────────────────────────────── */
.section      { padding: 80px 0; }
.section-sm   { padding: 48px 0; }
.section-xs   { padding: 32px 0; }
.section-lg   { padding: 112px 0; }

/* ── Grids ─────────────────────────────────────────────── */
.grid     { display: grid; gap: 24px; }
.grid-2   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-auto-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ── Flex utilities ────────────────────────────────────── */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1       { flex: 1; }
.flex-none    { flex: none; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

/* ── Spacing helpers ───────────────────────────────────── */
.mt-2  { margin-top: 8px; }  .mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; } .mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-2  { margin-bottom: 8px; }  .mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; } .mb-8  { margin-bottom: 32px; }
.p-4   { padding: 16px; } .p-6 { padding: 24px; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hc-border-light);
  transition: box-shadow var(--dur) var(--ease);
}
.nav.scrolled { box-shadow: var(--hc-shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  color: var(--hc-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo:hover { color: var(--hc-primary-dark); }
.nav-logo span { color: var(--hc-accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--hc-text-secondary);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}
.nav-link:hover { color: var(--hc-primary); background: var(--hc-primary-pale); }
.nav-link.active { color: var(--hc-primary); font-weight: 600; background: var(--hc-primary-pale); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--hc-border);
  transition: all var(--dur) var(--ease);
  font-size: 14px; font-weight: 500; color: var(--hc-text);
  text-decoration: none;
}
.nav-user:hover { border-color: var(--hc-primary); background: var(--hc-primary-pale); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--radius-md);
}
.nav-mobile-toggle span {
  width: 20px; height: 2px; background: var(--hc-text);
  border-radius: 2px; transition: all var(--dur) var(--ease);
}
.nav-mobile-toggle:hover span { background: var(--hc-primary); }

.mobile-nav {
  border-top: 1px solid var(--hc-border-light);
  padding: 16px 0 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-link {
  display: block; padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500;
  color: var(--hc-text-secondary);
  transition: all var(--dur) var(--ease);
}
.mobile-nav-link:hover { background: var(--hc-primary-pale); color: var(--hc-primary); }
.mobile-nav-actions { display: flex; gap: 10px; margin-top: 8px; padding: 0 16px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (max-width: 600px) {
  .container, .container-sm, .container-lg { padding: 0 16px; }
  .section   { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
}

/* ── Page layout (push content below fixed nav) ─────────── */
.page-wrapper { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  background: var(--hc-dark);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-sm { padding: 64px 0 56px; }
.hero-content { position: relative; z-index: 1; }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--hc-dark);
  color: var(--hc-text-on-dark-muted);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px 32px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
  text-decoration: none;
  display: block; margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--hc-text-on-dark-muted); max-width: 260px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: var(--hc-text-on-dark-muted); transition: color var(--dur) var(--ease); text-decoration: none; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--hc-dark-border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Workspace Layout ──────────────────────────────────── */
.workspace {
  display: flex; min-height: calc(100vh - var(--nav-h));
}
.workspace-sidebar {
  width: var(--sidebar-w);
  background: var(--hc-dark);
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.workspace-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px;
  overflow-y: auto;
  background: var(--hc-bg);
  min-height: calc(100vh - var(--nav-h));
}
.ws-sidebar-nav { padding: 24px 16px; flex: 1; }
.ws-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all var(--dur) var(--ease);
  cursor: pointer; margin-bottom: 2px;
  border: none; background: none; width: 100%; text-align: left;
}
.ws-nav-item:hover { background: var(--hc-dark-card); color: #fff; }
.ws-nav-item.active { background: var(--hc-primary); color: #fff; }
.ws-nav-icon { width: 18px; flex-shrink: 0; font-size: 16px; }
.ws-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--hc-border-light);
}

@media (max-width: 900px) {
  .workspace-sidebar { display: none; }
  .workspace-main { margin-left: 0; padding: 20px 16px; }
}

/* ── Filter sidebar ────────────────────────────────────── */
.jobs-layout { display: flex; gap: 28px; align-items: flex-start; }
.filter-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--hc-surface);
  border: 1px solid var(--hc-border-light);
  border-radius: var(--radius-lg);
  padding: 24px; position: sticky; top: calc(var(--nav-h) + 24px);
}
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--hc-text-muted);
  margin-bottom: 12px;
}
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option { display: flex; align-items: center; gap: 8px; }
.filter-option label { font-size: 14px; color: var(--hc-text-secondary); cursor: pointer; }
.filter-option input[type=checkbox] { accent-color: var(--hc-primary); width: 15px; height: 15px; flex-shrink: 0; }
.jobs-main { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .jobs-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
}

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero {
  background: var(--hc-dark);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,107,74,0.3) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }

/* ── Responsive grid helpers ─────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.sr-only     { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded     { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
