/* Labaround Design Tokens — Plugin CSS'lerine ekle */
/* Bu blok her plugin CSS dosyasının EN BAŞINA gelecek */

:root {
  /* Tokens zaten Customizer'da tanımlı, burada sadece
     plugin scope'unda erişilebilir kılmak için referans */
  --lb-navy-900:  #0a1a32;
  --lb-navy-700:  #16325e;
  --lb-navy-600:  #1e4280;
  --lb-accent:    #00c2a8;
  --lb-accent-h:  #00dbbe;
  --lb-gold:      #f0b429;
  --lb-white:     #ffffff;
  --lb-off:       #f6f8fb;
  --lb-gray-200:  #dde3ed;
  --lb-gray-400:  #8fa0bb;
  --lb-gray-600:  #4d637f;
  --lb-text:      #0f1c2e;
  --lb-font-head: 'Syne', sans-serif;
  --lb-font-body: 'IBM Plex Sans', sans-serif;
  --lb-font-mono: 'IBM Plex Mono', monospace;
  --lb-radius:    10px;
  --lb-radius-lg: 18px;
  --lb-shadow:    0 4px 20px rgba(10,26,50,.12);
  --lb-transition:.22s cubic-bezier(.4,0,.2,1);
}

/* ============================================
   Labaround Laboratory Plugin — CSS
   ============================================ */

/* ── DASHBOARD ── */
.lab-dashboard { max-width: 860px; margin: 0 auto; font-family: inherit; }

.lab-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.lab-dashboard-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: #111827; }
.lab-dashboard-sub { margin: 0; font-size: 14px; color: #6b7280; }

.lab-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.lab-notice-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.lab-notice-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.lab-notice-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.lab-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}
.lab-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.lab-form-row { margin-bottom: 14px; }
.lab-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}
.lab-form-row input[type=text],
.lab-form-row input[type=url],
.lab-form-row input[type=email],
.lab-form-row input[type=number],
.lab-form-row textarea,
.lab-form-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    font-family: inherit;
}
.lab-form-row textarea { resize: vertical; }
.lab-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0 16px;
}
.lab-hint { font-size: 12px; color: #9ca3af; margin: -10px 0 12px; }
.lab-hint-inline { font-size: 11px; color: #9ca3af; }

.lab-tag-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
    box-sizing: border-box;
    display: block;
    font-family: inherit;
}

.lab-service-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    background: #fafafa;
}
.lab-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0 14px;
}
.lab-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #374151;
    margin-top: 8px;
    cursor: pointer;
}
.lab-remove-service {
    font-size: 12px;
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    display: block;
    margin-top: 6px;
}

.lab-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: inherit;
}
.lab-btn-primary { background: #1D9E75; color: #fff; border-color: #1D9E75; }
.lab-btn-primary:hover { background: #0F6E56; }
.lab-btn-outline { background: #fff; color: #374151; border-color: #d1d5db; }
.lab-btn-outline:hover { background: #f9fafb; }

.lab-form-actions { display: flex; justify-content: flex-end; padding: 16px 0; }

/* ── PUBLIC PROFILE ── */
.lab-profile-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px; font-family: inherit; }

.lab-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
}
.lab-profile-logo { flex-shrink: 0; }
.lab-profile-logo img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e7eb; }
.lab-profile-initials {
    width: 80px; height: 80px;
    border-radius: 8px;
    background: #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 600; color: #6b7280;
}
.lab-profile-name { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: #111827; }
.lab-profile-tagline { margin: 0 0 10px; font-size: 14px; color: #4b5563; }
.lab-profile-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.lab-pill {
    font-size: 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    padding: 4px 12px;
}
a.lab-pill-link { text-decoration: none; background: #eff6ff; color: #1d4ed8; }
a.lab-pill-link:hover { background: #dbeafe; }

.lab-profile-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;
}
@media (max-width: 768px) {
    .lab-profile-body { grid-template-columns: 1fr; }
    .lab-profile-sidebar { order: -1; }
}

.lab-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.lab-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: #111827; }
.lab-card-sub { font-size: 13px; color: #9ca3af; margin: 0 0 16px; }
.lab-about-text { font-size: 14px; color: #374151; line-height: 1.75; }

.lab-service-cat { margin-bottom: 16px; }
.lab-service-cat-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}
.lab-service-list { display: flex; flex-direction: column; gap: 8px; }
.lab-service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #f3f4f6;
}
.lab-service-name { font-size: 13px; font-weight: 500; color: #111827; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lab-service-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.lab-accredited-badge {
    font-size: 11px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 500;
}
.lab-std-tag {
    font-size: 11px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 4px;
    padding: 2px 7px;
    font-family: monospace;
}
.lab-service-note { font-size: 11px; color: #9ca3af; }

.lab-acc-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 7px;
}
.lab-acc-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #374151;
}
.lab-acc-list li::before { content: "✓"; color: #1D9E75; font-weight: 700; }

.lab-details {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 13px;
}
.lab-details dt { color: #9ca3af; font-weight: 500; white-space: nowrap; }
.lab-details dd { margin: 0; color: #374151; }
.lab-details a { color: #1d4ed8; }

.lab-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
    margin-top: 8px;
}

/* ── SERVICE FORM — 5 sütunlu grid ── */
.lab-service-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0 14px;
}
.lab-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.lab-service-num {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.lab-service-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.lab-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.lab-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 3px 10px;
}
.lab-checkbox-inline input { margin: 0; }
.lab-req { color: #ef4444; }

/* ── SERVICE DISPLAY — Public profile ── */
.lab-service-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    align-items: center;
}
.lab-sample-type-tag {
    font-size: 11px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;
}
.lab-detail-pill {
    font-size: 11px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    padding: 2px 8px;
}

/* ══════════════════════════════════════════════════════
   v2.0 — Catalog selector + Archive page styles
   ══════════════════════════════════════════════════════ */

/* Test catalog search bar */
.lab-catalog-search-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.lab-catalog-search {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.lab-selected-count {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}
.lab-selected-count strong {
    color: #1D9E75;
}

/* Catalog group */
.lab-catalog-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.lab-catalog-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
}
.lab-catalog-group-header:hover { background: #f3f4f6; }
.lab-catalog-group-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}
.lab-catalog-group-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lab-cat-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.lab-toggle-icon {
    font-size: 12px;
    color: #9ca3af;
}

/* Catalog items */
.lab-catalog-items {
    padding: 4px 0;
}
.lab-catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.lab-catalog-item:last-child { border-bottom: none; }
.lab-catalog-item:hover { background: #fafafa; }
.lab-catalog-item--selected { background: #f0fdf4; }
.lab-catalog-item--selected:hover { background: #ecfdf5; }

.lab-catalog-select-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}
.lab-catalog-item-name {
    font-size: 14px;
    color: #111827;
}
.lab-catalog-item-code {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
}

.lab-catalog-acc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 12px;
}
.lab-catalog-acc-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Test code on public profile */
.lab-test-code {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
    font-weight: 500;
}

/* Accreditation pills in profile header */
.lab-profile-acc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.lab-acc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
}
.lab-acc-pill--sm { font-size: 11px; padding: 2px 8px; }
.lab-acc-pill--more { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

/* ── Archive page ─────────────────────────────────── */
.lab-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.lab-archive-header {
    margin-bottom: 32px;
}
.lab-archive-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}
.lab-archive-sub {
    color: #6b7280;
    margin: 0;
}
.lab-archive-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 768px) {
    .lab-archive-layout { grid-template-columns: 1fr; }
}

/* Filter sidebar */
.lab-archive-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
}
.lab-filter-section {
    margin-bottom: 18px;
}
.lab-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 6px;
}
.lab-filter-input,
.lab-filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.lab-filter-submit {
    width: 100%;
    margin-top: 8px;
}
.lab-filter-clear {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}
.lab-filter-clear:hover { color: #ef4444; }

/* Results area */
.lab-archive-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.lab-results-count {
    font-weight: 600;
    font-size: 14px;
}
.lab-active-filters {
    font-size: 12px;
    color: #6b7280;
}

/* Lab cards in archive */
.lab-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lab-archive-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.lab-archive-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
    border-color: #1D9E75;
}
.lab-archive-card-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lab-archive-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lab-archive-initials {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
}
.lab-archive-card-body {
    flex: 1;
    min-width: 0;
}
.lab-archive-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #111827;
}
.lab-archive-card-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lab-archive-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}
.lab-archive-card-accs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.lab-archive-card-arrow {
    font-size: 18px;
    color: #d1d5db;
    flex-shrink: 0;
}
.lab-archive-card:hover .lab-archive-card-arrow { color: #1D9E75; }

/* Empty state */
.lab-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #e5e7eb;
}

/* ══════════════════════════════════════════════════════
   v2.1 — Cover, Logo, Specialties, Video, Gallery
   ══════════════════════════════════════════════════════ */

/* Cover banner */
.lab-profile-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}
.lab-profile-cover--empty {
    background: linear-gradient(135deg, #1D9E75 0%, #0f6b4f 100%);
    opacity: .18;
    height: 120px;
}
.lab-profile-header--has-cover {
    margin-top: -48px;
    position: relative;
    z-index: 1;
}
.lab-profile-header--has-cover .lab-profile-logo {
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

/* Specialties */
.lab-specialties-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lab-specialty-tag {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* Video embed */
.lab-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.lab-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 8px;
}

/* Gallery grid */
.lab-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.lab-gallery-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}
.lab-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.lab-gallery-item:hover img { transform: scale(1.04); }

/* Dashboard — tag items (specialties) */
.lab-tags-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.lab-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lab-tag-input-inline {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.lab-tag-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
}
.lab-tag-remove:hover { color: #ef4444; background: #fef2f2; }

/* Dashboard — gallery URL rows */
.lab-gallery-url-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.lab-gallery-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lab-gallery-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}
.lab-gallery-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   Media Uploader UI — Cover, Logo, Gallery
   ══════════════════════════════════════════════════════ */

.lab-media-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Cover preview box */
.lab-cover-preview {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    transition: border-color .2s;
}
.lab-cover-preview--empty {
    background: #f9fafb;
}
.lab-cover-preview:not(.lab-cover-preview--empty) {
    border: 2px solid transparent;
}

/* Logo preview box */
.lab-logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9fafb;
    flex-shrink: 0;
}
.lab-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lab-logo-preview:not(.lab-logo-preview--empty) {
    border-color: transparent;
}

/* Placeholder text inside upload areas */
.lab-upload-placeholder {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}
.lab-upload-placeholder--sm {
    font-size: 20px;
    font-weight: 700;
    color: #d1d5db;
}

/* Gallery upload grid */
.lab-gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 0;
}
.lab-gallery-upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.lab-gallery-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lab-gallery-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.lab-gallery-item-remove:hover { background: #ef4444; }

/* Add photo button (in grid) */
.lab-gallery-add-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    transition: border-color .15s, background .15s;
}
.lab-gallery-add-btn:hover {
    border-color: #1D9E75;
    background: #f0fdf4;
    color: #1D9E75;
}
.lab-gallery-add-icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════
   v2.6 — Unified Map styles
   ══════════════════════════════════════════════════════ */

/* Map container */
.lab-leaflet-map {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    z-index: 0;
}

/* Wrap */
.lab-map-wrap { margin-bottom: 24px; }

/* Filter bar (standalone [lab_map]) */
.lab-map-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.lab-map-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.lab-map-search-input {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}
.lab-map-select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.lab-map-clear {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}
.lab-map-clear:hover { color: #ef4444; }

/* Legend */
.lab-map-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}
.lab-map-legend--compact { margin-top: 8px; }
.lab-map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lab-pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.lab-pin-dot--lab    { background: #1D9E75; }
.lab-pin-dot--vendor { background: #E24B4A; }

/* List/Map view toggle buttons */
.lab-view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}
.lab-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.lab-view-btn:hover { background: #e5e7eb; color: #374151; }
.lab-view-btn--active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    font-weight: 500;
}

/* Dashboard — map location section */
.lab-coords-status {
    font-size: 13px;
    margin-bottom: 8px;
}
.lab-coords-ok {
    color: #1D9E75;
    font-weight: 500;
}
.lab-coords-missing { color: #BA7517; }
.lab-coords-manual-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* ══════════════════════════════════════════════════════
   Sector pills & dashboard checkboxes
   ══════════════════════════════════════════════════════ */

.lab-sector-pill {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}
.lab-sector-pill:hover { background: #dbeafe; color: #1e40af; }
.lab-sector-pill--sm   { font-size: 11px; padding: 2px 8px; }

.lab-profile-sector-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.lab-archive-card-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

/* Dashboard sector checkboxes */
.lab-sector-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.lab-sector-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background .1s, border-color .1s;
}
.lab-sector-checkbox-label:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
}
.lab-sector-checkbox-label input[type="checkbox"] {
    accent-color: #1D9E75;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.lab-sector-checkbox-label:has(input:checked) {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* Distance badge on lab cards */
.lab-distance-badge {
    background: #f0fdf4;
    color: #1D9E75;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   Map — Nearest first panel
   ══════════════════════════════════════════════════════ */

.lab-map-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.lab-map-nearest-btn {
    font-size: 12px;
    padding: 5px 14px;
    flex-shrink: 0;
}

/* Nearest results panel */
.lab-nearest-panel {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.lab-nearest-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background .1s;
}
.lab-nearest-row:last-child { border-bottom: none; }
.lab-nearest-row:hover { background: #f9fafb; }
.lab-nearest-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lab-nearest-body {
    flex: 1;
    min-width: 0;
}
.lab-nearest-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lab-nearest-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.lab-nearest-dist {
    font-size: 12px;
    font-weight: 700;
    color: #1D9E75;
    flex-shrink: 0;
    min-width: 44px;
    text-align: right;
}
