/* =========================================================
   Nurses listing pages — country / state / city / profile
   Professional layout: hero, search, card grid, breadcrumb.
   ========================================================= */

:root {
  --nl-bg: #f7f9fc;
  --nl-card: #ffffff;
  --nl-border: #e5e9f0;
  --nl-text: #1f2937;
  --nl-muted: #6b7280;
  --nl-primary: #2563eb;
  --nl-primary-dark: #1d4ed8;
  --nl-accent: #0d1b2a;
  --nl-radius: 10px;
  --nl-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --nl-shadow-hover: 0 4px 6px rgba(15, 23, 42, 0.06), 0 10px 20px rgba(15, 23, 42, 0.10);
}

.nl-page {
  background: var(--nl-bg);
  padding: 0 0 60px;
  color: var(--nl-text);
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Breadcrumbs */
.nl-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--nl-border);
  padding: 14px 0;
}
.nl-breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--nl-muted);
}
.nl-breadcrumb a {
  color: var(--nl-primary);
  text-decoration: none;
}
.nl-breadcrumb a:hover { text-decoration: underline; }
.nl-breadcrumb-sep { margin: 0 6px; color: #cbd5e1; }
.nl-breadcrumb-current { color: var(--nl-text); font-weight: 500; }

/* Hero */
.nl-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5b 100%);
  color: #fff;
  padding: 64px 20px 72px;
  position: relative;
  overflow: hidden;
}
.nl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 110%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.16), transparent 55%);
  pointer-events: none;
}
.nl-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.nl-hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nl-hero p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  line-height: 1.55;
}
.nl-hero-stats {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 720px;
}
.nl-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.nl-stat:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.nl-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}
.nl-stat-text {
  white-space: nowrap;
  line-height: 1;
}
.nl-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-right: 6px;
}

/* Container */
.nl-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

/* Search bar */
.nl-search { margin-bottom: 22px; }
.nl-search-field {
  position: relative;
  display: block;
}
.nl-search-input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  font-size: 15px;
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  background: #fff;
  color: var(--nl-text);
  box-shadow: var(--nl-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.nl-search-input:focus {
  outline: none;
  border-color: var(--nl-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.nl-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nl-muted);
  pointer-events: none;
  z-index: 1;
}
.nl-search-count {
  font-size: 13px;
  color: var(--nl-muted);
  margin: 8px 0 0 4px;
  min-height: 18px;
}

/* Grid of cards */
.nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.nl-card {
  display: block;
  background: var(--nl-card);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--nl-text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--nl-shadow);
  position: relative;
  overflow: hidden;
}
.nl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--nl-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nl-shadow-hover);
  border-color: #cdd5e0;
  text-decoration: none;
  color: var(--nl-text);
}
.nl-card:hover::before { transform: scaleX(1); }

.nl-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--nl-accent);
}
.nl-card-meta {
  font-size: 13px;
  color: var(--nl-muted);
}
.nl-card-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 500;
  margin-top: 8px;
}

/* Profile page (nurse detail) */
.nl-profile {
  background: var(--nl-card);
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 28px;
  box-shadow: var(--nl-shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.nl-profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nl-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  flex: 0 0 80px;
}
.nl-profile-avatar--img {
  object-fit: cover;
  background: #f3f5f7;
  border: 1px solid var(--nl-border);
}

/* Nurse card row (city listing) */
.nl-nurse-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nl-nurse-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: 0 0 46px;
  object-fit: cover;
  background: #f3f5f7;
  border: 1px solid var(--nl-border);
  display: block;
}
.nl-nurse-thumb--fallback {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  border: 0;
}
.nl-profile-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
}
.nl-profile-head .nl-profession {
  color: var(--nl-muted);
  font-size: 15px;
}
.nl-profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--nl-border);
}
.nl-info-item .nl-info-label {
  font-size: 12px;
  color: var(--nl-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.nl-info-item .nl-info-value {
  font-size: 15px;
  color: var(--nl-text);
}
.nl-cta-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nl-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.05s;
}
.nl-btn-primary {
  background: var(--nl-primary);
  color: #fff;
}
.nl-btn-primary:hover {
  background: var(--nl-primary-dark);
  color: #fff;
  text-decoration: none;
}
.nl-btn-outline {
  background: #fff;
  color: var(--nl-primary);
  border-color: var(--nl-primary);
}
.nl-btn-outline:hover {
  background: #f0f6ff;
  color: var(--nl-primary-dark);
  text-decoration: none;
}

/* Pagination */
.nl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.nl-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nl-border);
  background: #fff;
  color: var(--nl-text);
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.nl-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--nl-primary);
  color: var(--nl-primary);
  background: #f0f6ff;
}
.nl-page-btn.is-active {
  background: var(--nl-primary);
  border-color: var(--nl-primary);
  color: #fff;
  cursor: default;
}
.nl-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nl-page-ellipsis {
  padding: 0 4px;
  color: var(--nl-muted);
  font-size: 14px;
  user-select: none;
}
.nl-page-info {
  text-align: center;
  font-size: 13px;
  color: var(--nl-muted);
  margin-top: 14px;
}

/* Empty state */
.nl-empty {
  background: #fff;
  border: 1px dashed var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 36px 20px;
  text-align: center;
  color: var(--nl-muted);
}
.nl-empty strong { color: var(--nl-text); }

/* Section heading inside container */
.nl-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 14px;
  color: var(--nl-accent);
}

/* Sitemap collapsible tree */
.nl-tree {
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: var(--nl-radius);
  padding: 18px 22px;
  box-shadow: var(--nl-shadow);
}
.nl-tree details {
  margin-bottom: 10px;
}
.nl-tree summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--nl-accent);
  padding: 6px 0;
  list-style: none;
}
.nl-tree summary::-webkit-details-marker { display: none; }
.nl-tree summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s;
  color: var(--nl-primary);
}
.nl-tree details[open] > summary::before { transform: rotate(90deg); }
.nl-tree summary a {
  color: inherit;
  text-decoration: none;
}
.nl-tree summary a:hover { color: var(--nl-primary); }
.nl-tree ul {
  list-style: none;
  margin: 6px 0 6px 22px;
  padding: 0;
  border-left: 2px solid #eef2f7;
}
.nl-tree li { padding: 3px 0 3px 12px; font-size: 14px; }
.nl-tree li a {
  color: var(--nl-primary);
  text-decoration: none;
}
.nl-tree li a:hover { text-decoration: underline; }
.nl-tree li .count {
  color: var(--nl-muted);
  font-size: 12px;
  margin-left: 4px;
}

@media (max-width: 600px) {
  .nl-hero { padding: 32px 16px 40px; }
  .nl-profile-head { flex-direction: column; align-items: flex-start; }
}
