@charset "UTF-8";
/* ============================================================
   Tokens Index (forward everything used by ds.scss)
   ============================================================ */
/* primitives */
:root {
  /* Blue */
  --ds-blue-10: #edf5ff;
  --ds-blue-20: #d0e2ff;
  --ds-blue-30: #a6c8ff;
  --ds-blue-40: #78a9ff;
  --ds-blue-50: #4589ff;
  --ds-blue-60: #0f62fe; /* Primary */
  --ds-blue-70: #0043ce;
  --ds-blue-80: #002d9c;
  --ds-blue-90: #001d6c;
  --ds-blue-100: #001141;
  /* Neutral Gray Scale */
  --ds-gray-50: #f9fafb;
  --ds-gray-100: #f3f4f6;
  --ds-gray-200: #e5e7eb;
  --ds-gray-300: #d1d5db;
  --ds-gray-400: #9ca3af;
  --ds-gray-500: #6b7280;
  --ds-gray-600: #4b5563;
  --ds-gray-700: #374151;
  --ds-gray-800: #1f2937;
  --ds-gray-900: #111827;
  /* Semantic Raw Feedback */
  --ds-green-600: #16a34a;
  --ds-red-600: #dc2626;
  --ds-yellow-500:#eab308;
}

/* ============================================================
   Spacing (Carbon-like)
   - spacing-01 ... spacing-13
   - aliases: space-1 ... space-13 (pra uso em componentes)
   ============================================================ */
:root {
  /* Carbon-ish spacing tokens (px) */
  --ds-spacing-01: 2px;
  --ds-spacing-02: 4px;
  --ds-spacing-03: 8px;
  --ds-spacing-04: 12px;
  --ds-spacing-05: 16px;
  --ds-spacing-06: 24px;
  --ds-spacing-07: 32px;
  --ds-spacing-08: 40px;
  --ds-spacing-09: 48px;
  --ds-spacing-10: 64px;
  --ds-spacing-11: 80px;
  --ds-spacing-12: 96px;
  --ds-spacing-13: 160px;
  /* Aliases (os que você já usa no DS) */
  --ds-space-1: var(--ds-spacing-01);
  --ds-space-2: var(--ds-spacing-02);
  --ds-space-3: var(--ds-spacing-03);
  --ds-space-4: var(--ds-spacing-04);
  --ds-space-5: var(--ds-spacing-05);
  --ds-space-6: var(--ds-spacing-06);
  --ds-space-7: var(--ds-spacing-07);
  --ds-space-8: var(--ds-spacing-08);
  --ds-space-9: var(--ds-spacing-09);
  --ds-space-10: var(--ds-spacing-10);
  --ds-space-11: var(--ds-spacing-11);
  --ds-space-12: var(--ds-spacing-12);
  --ds-space-13: var(--ds-spacing-13);
}

:root {
  --ds-radius-0: 0;
  --ds-radius-1: 4px;
  --ds-radius-2: 8px;
  --ds-radius-3: 12px;
  --ds-radius-4: 16px;
  --ds-radius-pill: 999px;
}

:root {
  /* Font Family */
  --ds-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Font Sizes */
  --ds-font-size-1: 12px;
  --ds-font-size-2: 14px;
  --ds-font-size-3: 16px;
  --ds-font-size-4: 18px;
  --ds-font-size-5: 20px;
  --ds-font-size-6: 24px;
  --ds-font-size-7: 32px;
  --ds-font-size-8: 40px;
  /* Font Weights */
  --ds-font-weight-regular: 400;
  --ds-font-weight-medium: 500;
  --ds-font-weight-semibold: 600;
  --ds-font-weight-bold: 700;
  /* Line Heights */
  --ds-line-height-tight: 1.2;
  --ds-line-height-normal: 1.5;
  --ds-line-height-loose: 1.75;
}

/* semantic */
:root {
  /* Base Page */
  --ds-background: var(--ds-gray-50);
  /* Layer System */
  --ds-layer-01: #ffffff;
  --ds-layer-02: var(--ds-gray-100);
  --ds-layer-03: var(--ds-gray-200);
  /* Inverse */
  --ds-layer-inverse: var(--ds-gray-900);
}

:root {
  --ds-border-default: var(--ds-gray-200);
  --ds-border-strong: var(--ds-gray-400);
  --ds-border-focus: var(--ds-blue-60);
}

:root {
  /* Elevation (premium, discreto) */
  --ds-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.08);
  --ds-shadow-md: 0 6px 16px rgba(17, 24, 39, 0.10);
  --ds-shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.14);
  /* Bordas suaves (premium) */
  --ds-border-subtle: color-mix(in srgb, var(--ds-gray-200) 70%, transparent);
  --ds-border-strong: var(--ds-gray-300);
}

:root {
  --ds-success: var(--ds-green-600);
  --ds-error: var(--ds-red-600);
  --ds-warning: var(--ds-yellow-500);
}

:root {
  /* Focus (Carbon-like) */
  --ds-focus-width: 3px;
  --ds-focus-offset: 2px;
  /* Use um azul da sua escala como foco */
  --ds-focus-color: var(--ds-blue-60);
  /* Ring pronto pra aplicar */
  --ds-focus-ring: 0 0 0 var(--ds-focus-width) color-mix(in srgb, var(--ds-focus-color) 35%, transparent);
  /* Para casos em background escuro */
  --ds-focus-ring-strong: 0 0 0 var(--ds-focus-width) color-mix(in srgb, var(--ds-focus-color) 55%, transparent);
}

:root {
  --ds-interactive-primary: var(--ds-blue-60);
  --ds-interactive-primary-hover: var(--ds-blue-70);
  --ds-interactive-primary-active: var(--ds-blue-80);
  --ds-link-primary: var(--ds-blue-60);
  --ds-link-hover: var(--ds-blue-70);
}

:root {
  --ds-text-primary: var(--ds-gray-900);
  --ds-text-secondary: var(--ds-gray-600);
  --ds-text-muted: var(--ds-gray-500);
}

:root {
  --ds-icon-size: 16px;
  --ds-icon-color: var(--ds-text-secondary);
}

/* ============================================================
   Layout (Carbon-like breakpoints)
   - max width: 1584
   - breakpoints:
     md: 672px
     lg: 1056px
     xlg: 1312px
     max: 1584px
   ============================================================ */
.ds-page {
  padding-block: var(--ds-space-7);
}

.ds-container {
  width: min(1584px, 100% - 2 * var(--ds-space-6));
  margin-inline: auto;
}

.ds-grid {
  display: grid;
  gap: var(--ds-space-6);
}

/* Cards grid: 4 / 3 / 2 / 1 */
.ds-grid--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1312px) {
  .ds-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1056px) {
  .ds-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 672px) {
  .ds-grid--cards {
    grid-template-columns: 1fr;
  }
}
:root {
  --ds-body-sm-size: var(--ds-font-size-2);
  --ds-body-md-size: var(--ds-font-size-3);
  --ds-body-lg-size: var(--ds-font-size-4);
  --ds-body-sm-weight: var(--ds-font-weight-regular);
  --ds-body-md-weight: var(--ds-font-weight-regular);
  --ds-body-lg-weight: var(--ds-font-weight-regular);
  --ds-heading-sm-size: var(--ds-font-size-4);
  --ds-heading-md-size: var(--ds-font-size-5);
  --ds-heading-lg-size: var(--ds-font-size-6);
  --ds-heading-xl-size: var(--ds-font-size-7);
  --ds-heading-sm-weight: var(--ds-font-weight-semibold);
  --ds-heading-md-weight: var(--ds-font-weight-semibold);
  --ds-heading-lg-weight: var(--ds-font-weight-bold);
  --ds-heading-xl-weight: var(--ds-font-weight-bold);
  --ds-line-height-body: var(--ds-line-height-normal);
  --ds-line-height-heading: var(--ds-line-height-tight);
  --ds-letter-spacing-heading: -0.01em;
}

/* ============================================================
   INPUTS base (para toolbar/pagination) - Carbon-like
   ============================================================ */
:root {
  --ds-control-h: 40px;
  --ds-control-h-sm: 32px;
  --ds-control-radius: var(--ds-radius-3);
  --ds-control-border: var(--ds-border-subtle, color-mix(in srgb, #000 12%, transparent));
  --ds-control-bg: var(--ds-layer-01, #fff);
  --ds-control-text: var(--ds-text-primary, #111);
  --ds-control-placeholder: var(--ds-text-secondary, #6b7280);
  --ds-control-focus: var(--ds-blue-50);
  --ds-control-focus-ring: color-mix(in srgb, var(--ds-blue-30) 55%, transparent);
  --ds-control-error: var(--ds-red-600);
  --ds-control-warn: #f5a700;
}

/* Wrapper genérico */
.ds-field {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-label {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

/* Input / Select */
.ds-input,
.ds-select {
  inline-size: 100%;
  block-size: var(--ds-control-h);
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-control-radius);
  border: 1px solid var(--ds-control-border);
  background: var(--ds-control-bg);
  color: var(--ds-control-text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.ds-input::placeholder {
  color: var(--ds-control-placeholder);
}

.ds-input:focus,
.ds-select:focus {
  border-color: var(--ds-control-focus);
  box-shadow: 0 0 0 3px var(--ds-control-focus-ring);
}

.ds-input[aria-invalid=true],
.ds-select[aria-invalid=true] {
  border-color: var(--ds-control-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-control-error) 25%, transparent);
}

.ds-input:disabled,
.ds-select:disabled {
  opacity: 0.7;
  background: color-mix(in srgb, var(--ds-control-bg) 70%, #f3f4f6);
  cursor: not-allowed;
}

/* Compact variants */
.ds-input--sm,
.ds-select--sm {
  block-size: var(--ds-control-h-sm);
  padding-inline: var(--ds-space-3);
  font-size: var(--ds-body-sm-size);
}

/* ============================================================
   BUTTONS base - Carbon-ish
   ============================================================ */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  block-size: var(--ds-control-h);
  padding: 0 var(--ds-space-5);
  border-radius: var(--ds-radius-3);
  border: 1px solid transparent;
  background: var(--ds-layer-01, #fff);
  color: var(--ds-text-primary, #111);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ds-btn:hover {
  background: color-mix(in srgb, var(--ds-blue-50) 8%, transparent);
}

.ds-btn:active {
  transform: translateY(1px);
}

.ds-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ds-control-focus-ring);
}

.ds-btn--primary {
  background: var(--ds-blue-60, #0f62fe);
  color: #fff;
}

.ds-btn--primary:hover {
  background: color-mix(in srgb, var(--ds-blue-60) 88%, #000);
}

.ds-btn--ghost {
  background: transparent;
  border-color: var(--ds-control-border);
}

.ds-btn--ghost:hover {
  background: color-mix(in srgb, var(--ds-blue-50) 10%, transparent);
}

.ds-btn--sm {
  block-size: var(--ds-control-h-sm);
  padding: 0 var(--ds-space-4);
  font-size: var(--ds-body-sm-size);
}

/* ============================================================
   CHECKBOX (Carbon-like)
   ============================================================ */
.ds-check {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  cursor: pointer;
  user-select: none;
}

.ds-check input {
  inline-size: 16px;
  block-size: 16px;
  accent-color: var(--ds-blue-60, #0f62fe);
}

.ds-check span {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

/* ============================================================
   TABLE TOOLBAR (search + filter + new + batch actions)
   ============================================================ */
.ds-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-border-subtle, color-mix(in srgb, #000 10%, transparent));
  border-bottom: none;
  border-radius: var(--ds-radius-4) var(--ds-radius-4) 0 0;
  background: var(--ds-layer-01, #fff);
}

.ds-table-toolbar__left,
.ds-table-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  flex-wrap: wrap;
}

.ds-table-toolbar__search {
  min-inline-size: 320px;
  max-inline-size: 520px;
  inline-size: 38vw;
}

@media (max-width: 720px) {
  .ds-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ds-table-toolbar__search {
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
  }
}
/* "Batch actions" — aparece quando há seleção */
.ds-batch {
  display: none;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  border: 1px solid var(--ds-border-subtle, color-mix(in srgb, #000 10%, transparent));
  border-bottom: none;
  background: color-mix(in srgb, var(--ds-blue-50) 8%, #fff);
}

.ds-batch.is-active {
  display: flex;
}

.ds-batch__count {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

/* ============================================================
   TABLE WRAP: encaixe perfeito com toolbar/pagination
   ============================================================ */
.ds-table-wrap {
  border-radius: var(--ds-radius-4);
  overflow: hidden;
  border: 1px solid var(--ds-border-subtle, color-mix(in srgb, #000 10%, transparent));
  background: var(--ds-layer-01, #fff);
}

/* Se você já tem .ds-table-wrap, mantenha; isso só garante o "encaixe" */
.ds-table-wrap .ds-table {
  border: none; /* evita borda dupla */
}

/* ============================================================
   PAGINATION (Carbon-like)
   ============================================================ */
.ds-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-top: 1px solid var(--ds-border-subtle, color-mix(in srgb, #000 10%, transparent));
  background: var(--ds-layer-01, #fff);
}

.ds-pagination__left,
.ds-pagination__right {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  flex-wrap: wrap;
}

.ds-pagination__meta {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

.ds-pagination__nav {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
}

.ds-pagination__icon {
  inline-size: 36px;
  block-size: 32px;
}

@media (max-width: 720px) {
  .ds-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .ds-pagination__left,
  .ds-pagination__right {
    justify-content: space-between;
  }
}
/* components */
/* ============================================================
   Layout (Carbon-ish)
   Breakpoints:
   - max: 1584px
   - xlg: 1312px
   - lg : 1056px
   - md : 672px
   ============================================================ */
:root {
  --ds-container-max: 1584px;
  --ds-gutter: var(--ds-space-6);
}

/* page wrapper */
.ds-page {
  padding-block: var(--ds-space-4);
}

/* max container */
.ds-container {
  width: min(var(--ds-container-max), 100% - 2 * var(--ds-gutter));
  margin-inline: auto;
}

/* grid base */
.ds-grid {
  display: grid;
  gap: var(--ds-space-6);
}

/* cards grid: 4 / 3 / 2 / 1 */
.ds-grid--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* <= 1312: 3 colunas */
@media (max-width: 1312px) {
  .ds-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* <= 1056: 2 colunas */
@media (max-width: 1056px) {
  .ds-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* <= 672: 1 coluna */
@media (max-width: 672px) {
  .ds-grid--cards {
    grid-template-columns: 1fr;
  }
}
.ds-icon {
  width: var(--ds-icon-size);
  height: var(--ds-icon-size);
  display: inline-block;
  flex: 0 0 auto;
  color: var(--ds-icon-color);
}

.ds-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ds-icon svg * {
  vector-effect: non-scaling-stroke;
}

/* ============================================================
   Badge (Carbon-inspired)
   Variants: sale | rent | launch | opportunity | sold | neutral
   ============================================================ */
:root {
  /* Base */
  --ds-badge-radius: var(--ds-radius-pill);
  --ds-badge-font-size: 12px;
  --ds-badge-font-weight: var(--ds-font-weight-semibold);
  --ds-badge-padding-y: 6px;
  --ds-badge-padding-x: 10px;
  /* Neutral */
  --ds-badge-bg: color-mix(in srgb, var(--ds-gray-700) 12%, #fff);
  --ds-badge-text: var(--ds-text-primary);
  --ds-badge-border: color-mix(in srgb, var(--ds-gray-300) 50%, transparent);
  /* SALE */
  --ds-badge-sale-bg: color-mix(in srgb, var(--ds-blue-70) 12%, #fff);
  --ds-badge-sale-text: var(--ds-blue-80);
  --ds-badge-sale-border: color-mix(in srgb, var(--ds-blue-30) 35%, transparent);
  /* RENT */
  --ds-badge-rent-bg: color-mix(in srgb, var(--ds-green-600) 12%, #fff);
  --ds-badge-rent-text: color-mix(in srgb, var(--ds-green-600) 85%, #0b1b12);
  --ds-badge-rent-border: color-mix(in srgb, var(--ds-green-600) 28%, transparent);
  /* LAUNCH */
  --ds-badge-launch-bg: color-mix(in srgb, var(--ds-yellow-500) 16%, #fff);
  --ds-badge-launch-text: color-mix(in srgb, var(--ds-yellow-500) 85%, #2b2100);
  --ds-badge-launch-border: color-mix(in srgb, var(--ds-yellow-500) 32%, transparent);
  /* OPPORTUNITY */
  --ds-badge-opportunity-bg: color-mix(in srgb, var(--ds-red-600) 10%, #fff);
  --ds-badge-opportunity-text: color-mix(in srgb, var(--ds-red-600) 80%, #2b0a0a);
  --ds-badge-opportunity-border: color-mix(in srgb, var(--ds-red-600) 26%, transparent);
  /* SOLD (subtle, desaturated) */
  --ds-badge-sold-bg: color-mix(in srgb, var(--ds-gray-500) 14%, #fff);
  --ds-badge-sold-text: var(--ds-text-secondary);
  --ds-badge-sold-border: color-mix(in srgb, var(--ds-gray-300) 55%, transparent);
}

/* Base */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--ds-badge-padding-y) var(--ds-badge-padding-x);
  border-radius: var(--ds-badge-radius);
  font-size: var(--ds-badge-font-size);
  font-weight: var(--ds-badge-font-weight);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--ds-badge-bg);
  color: var(--ds-badge-text);
  border: 1px solid var(--ds-badge-border);
  backdrop-filter: blur(6px);
}

/* Variants */
.ds-badge--sale {
  background: var(--ds-badge-sale-bg);
  color: var(--ds-badge-sale-text);
  border-color: var(--ds-badge-sale-border);
}

.ds-badge--rent {
  background: var(--ds-badge-rent-bg);
  color: var(--ds-badge-rent-text);
  border-color: var(--ds-badge-rent-border);
}

.ds-badge--launch {
  background: var(--ds-badge-launch-bg);
  color: var(--ds-badge-launch-text);
  border-color: var(--ds-badge-launch-border);
}

.ds-badge--opportunity {
  background: var(--ds-badge-opportunity-bg);
  color: var(--ds-badge-opportunity-text);
  border-color: var(--ds-badge-opportunity-border);
}

.ds-badge--sold {
  background: var(--ds-badge-sold-bg);
  color: var(--ds-badge-sold-text);
  border-color: var(--ds-badge-sold-border);
}

/* Sizes (optional) */
.ds-badge--sm {
  --ds-badge-font-size: 11px;
  --ds-badge-padding-y: 5px;
  --ds-badge-padding-x: 9px;
}

.ds-badge--md {
  --ds-badge-font-size: 12px;
  --ds-badge-padding-y: 6px;
  --ds-badge-padding-x: 10px;
}

:root {
  /* Button tokens */
  --ds-btn-radius: var(--ds-radius-3);
  --ds-btn-padding-y: var(--ds-space-3);
  --ds-btn-padding-x: var(--ds-space-5);
  --ds-btn-font-size: var(--ds-body-md-size);
  --ds-btn-font-weight: var(--ds-font-weight-semibold);
  --ds-btn-height: 44px;
  /* Primary (premium) */
  --ds-btn-primary-bg: var(--ds-blue-70);
  --ds-btn-primary-bg-hover: var(--ds-blue-80);
  --ds-btn-primary-text: #fff;
  /* Secondary */
  --ds-btn-secondary-bg: transparent;
  --ds-btn-secondary-text: var(--ds-blue-70);
  --ds-btn-secondary-border: var(--ds-blue-30);
  /* Ghost */
  --ds-btn-ghost-bg-hover: color-mix(in srgb, var(--ds-blue-100) 55%, transparent);
}

/* Base */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  height: var(--ds-btn-height);
  padding: var(--ds-btn-padding-y) var(--ds-btn-padding-x);
  border-radius: var(--ds-btn-radius);
  font-size: var(--ds-btn-font-size);
  font-weight: var(--ds-btn-font-weight);
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.ds-btn:active {
  transform: translateY(1px);
}

.ds-btn:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring);
}

/* Variants */
.ds-btn--primary {
  background: var(--ds-btn-primary-bg);
  color: var(--ds-btn-primary-text);
}

.ds-btn--primary:hover {
  background: var(--ds-btn-primary-bg-hover);
}

.ds-btn--secondary {
  background: var(--ds-btn-secondary-bg);
  color: var(--ds-btn-secondary-text);
  border-color: var(--ds-btn-secondary-border);
}

.ds-btn--secondary:hover {
  background: color-mix(in srgb, var(--ds-blue-100) 35%, transparent);
}

.ds-btn--ghost {
  background: transparent;
  color: var(--ds-btn-secondary-text);
}

.ds-btn--ghost:hover {
  background: var(--ds-btn-ghost-bg-hover);
}

/* Sizes */
.ds-btn--sm {
  height: 38px;
  padding: var(--ds-space-2) var(--ds-space-4);
  font-size: var(--ds-body-sm-size);
}

.ds-btn--lg {
  height: 50px;
  padding: var(--ds-space-4) var(--ds-space-6);
  font-size: var(--ds-body-lg-size);
}

/* Disabled */
.ds-btn:disabled,
.ds-btn[aria-disabled=true] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Icon Button (Carbon-style)
   - for icon-only actions (view/edit/whats/delete)
   - density-aware (xs/sm/md/lg) — perfeito p/ tabelas
   ============================================================ */
:root {
  /* default (md) */
  --ds-icon-btn-size: 36px; /* hit area */
  --ds-icon-btn-icon-size: 18px;
  --ds-icon-btn-radius: var(--ds-radius-3);
  --ds-icon-btn-border: transparent;
  --ds-icon-btn-bg: transparent;
  --ds-icon-btn-color: var(--ds-text-secondary);
  --ds-icon-btn-hover-bg: color-mix(in srgb, var(--ds-blue-50) 10%, transparent);
  --ds-icon-btn-hover-color: var(--ds-blue-70);
  --ds-icon-btn-active-bg: color-mix(in srgb, var(--ds-blue-50) 16%, transparent);
  --ds-icon-btn-disabled-opacity: .45;
  /* Danger */
  --ds-icon-btn-danger-hover-bg: color-mix(in srgb, var(--ds-red-600) 12%, transparent);
  --ds-icon-btn-danger-hover-color: var(--ds-red-600);
}

/* Optional explicit sizes (use if you want outside table) */
.ds-icon-button--xs {
  --ds-icon-btn-size: 28px;
  --ds-icon-btn-icon-size: 16px;
}

.ds-icon-button--sm {
  --ds-icon-btn-size: 32px;
  --ds-icon-btn-icon-size: 18px;
}

.ds-icon-button--md {
  --ds-icon-btn-size: 36px;
  --ds-icon-btn-icon-size: 18px;
}

.ds-icon-button--lg {
  --ds-icon-btn-size: 40px;
  --ds-icon-btn-icon-size: 20px;
}

/* Auto: if inside table density, shrink accordingly */
.ds-table--density-xs .ds-icon-button {
  --ds-icon-btn-size: 28px;
  --ds-icon-btn-icon-size: 16px;
}

.ds-table--density-sm .ds-icon-button {
  --ds-icon-btn-size: 32px;
  --ds-icon-btn-icon-size: 18px;
}

.ds-table--density-md .ds-icon-button {
  --ds-icon-btn-size: 36px;
  --ds-icon-btn-icon-size: 18px;
}

.ds-table--density-lg .ds-icon-button {
  --ds-icon-btn-size: 40px;
  --ds-icon-btn-icon-size: 20px;
}

/* Base */
.ds-icon-button {
  inline-size: var(--ds-icon-btn-size);
  block-size: var(--ds-icon-btn-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-icon-btn-radius);
  border: 1px solid var(--ds-icon-btn-border);
  background: var(--ds-icon-btn-bg);
  color: var(--ds-icon-btn-color);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.ds-icon-button .ds-icon {
  width: var(--ds-icon-btn-icon-size);
  height: var(--ds-icon-btn-icon-size);
  color: currentColor;
}

/* Hover / active */
.ds-icon-button:hover {
  background: var(--ds-icon-btn-hover-bg);
  color: var(--ds-icon-btn-hover-color);
}

.ds-icon-button:active {
  background: var(--ds-icon-btn-active-bg);
  transform: translateY(1px);
}

/* Focus */
.ds-icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-blue-30) 55%, transparent);
}

/* Disabled (button ou link fake) */
.ds-icon-button:disabled,
.ds-icon-button[aria-disabled=true] {
  opacity: var(--ds-icon-btn-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}

/* Danger modifier */
.ds-icon-button--danger:hover {
  background: var(--ds-icon-btn-danger-hover-bg);
  color: var(--ds-icon-btn-danger-hover-color);
}

.ds-icon-button--danger:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-red-600) 35%, transparent);
}

/* ============================================================
   Link (Carbon-like)
   - variants: default | inline | subtle
   - states: hover | active | focus-visible | visited | disabled
   - with icon: .ds-link__icon
   ============================================================ */
:root {
  /* link tokens (se não existirem no semantic/_interactive.scss ainda) */
  --ds-link-color: var(--ds-link-primary, var(--ds-blue-60));
  --ds-link-hover: var(--ds-link-hover, var(--ds-blue-70));
  --ds-link-active: var(--ds-interactive-primary-active, var(--ds-blue-80));
  /* underline */
  --ds-link-underline-thickness: 1px;
  --ds-link-underline-offset: 3px;
  /* icon motion */
  --ds-link-icon-shift: 3px;
  --ds-link-icon-size: 16px;
  /* subtle */
  --ds-link-subtle-color: color-mix(in srgb, var(--ds-text-primary) 70%, var(--ds-link-color));
  --ds-link-subtle-hover: var(--ds-link-hover);
}

/* Base */
.ds-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-02);
  color: var(--ds-link-color);
  text-decoration: underline;
  text-decoration-thickness: var(--ds-link-underline-thickness);
  text-underline-offset: var(--ds-link-underline-offset);
  font-weight: var(--ds-font-weight-medium);
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Hover / active */
.ds-link:hover {
  color: var(--ds-link-hover);
}

.ds-link:active {
  color: var(--ds-link-active);
}

/* Focus */
.ds-link:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring);
  border-radius: 6px; /* pequeno, só pra “abraçar” o foco */
}

/* Visited (bem sutil, sem ficar roxo gritante) */
.ds-link:visited {
  color: color-mix(in srgb, var(--ds-link-color) 78%, var(--ds-gray-700));
}

/* Disabled */
.ds-link.is-disabled,
.ds-link[aria-disabled=true] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

/* Inline variant (menos “cara de CTA”, mais texto) */
.ds-link--inline {
  font-weight: inherit;
}

/* Subtle variant (boa pra tabelas / listagens) */
.ds-link--subtle {
  color: var(--ds-link-subtle-color);
}

.ds-link--subtle:hover {
  color: var(--ds-link-subtle-hover);
}

/* With icon */
.ds-link__icon {
  width: var(--ds-link-icon-size);
  height: var(--ds-link-icon-size);
  display: inline-block;
  flex: 0 0 auto;
  /* garante que não dependa de vars globais */
  color: currentColor;
}

.ds-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ds-link__icon svg * {
  vector-effect: non-scaling-stroke;
}

/* Icon motion */
.ds-link:hover .ds-link__icon,
.ds-link:focus-visible .ds-link__icon {
  transform: translateX(var(--ds-link-icon-shift));
}

.ds-link__icon {
  transition: transform 0.15s ease;
}

/* Optional: sem underline (quando virar “link-botão”) */
.ds-link--no-underline {
  text-decoration: none;
}

/* ============================================================
   Table (Carbon-ish)
   - density: sm | xs
   - optional: toolbar + batch actions + pagination
   - row hover + selected state + actions column
   ============================================================ */
:root {
  --ds-table-bg: var(--ds-layer-01);
  --ds-table-border: var(--ds-border-subtle);
  --ds-table-head-bg: color-mix(in srgb, var(--ds-gray-100) 75%, #fff);
  --ds-table-head-text: var(--ds-text-secondary);
  --ds-table-row-hover: color-mix(in srgb, var(--ds-blue-50) 6%, transparent);
  --ds-table-row-selected: color-mix(in srgb, var(--ds-blue-50) 10%, transparent);
  /* default density (md) */
  --ds-table-cell-py: var(--ds-space-3);
  --ds-table-cell-px: var(--ds-space-4);
  --ds-table-radius: var(--ds-radius-4);
}

/* ============================================================
   Wrapper
   - borda + radius + scroll horizontal quando precisar
   ============================================================ */
.ds-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ds-table-border);
  background: var(--ds-table-bg);
}

/* opcional (se um dia quiser head sticky de verdade)
.ds-table-wrap--scroll {
  max-height: 520px;
  overflow: auto;
}
*/
/* ============================================================
   Toolbar (acima da tabela)
   Use:
   <div class="ds-table-toolbar">...</div>
   ============================================================ */
.ds-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-4) var(--ds-space-5);
  border-bottom: 1px solid var(--ds-table-border);
  background: var(--ds-table-bg);
}

.ds-table-toolbar__left,
.ds-table-toolbar__right {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: 0;
}

.ds-table-toolbar__right {
  justify-content: flex-end;
}

/* ============================================================
   Batch Actions (Carbon-like)
   Use:
   <div class="ds-table-batch is-active">...</div>
   ============================================================ */
.ds-table-batch {
  display: none; /* aparece só quando tiver seleção */
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-5);
  border-bottom: 1px solid var(--ds-table-border);
  background: color-mix(in srgb, var(--ds-blue-50) 10%, #fff);
}

.ds-table-batch.is-active {
  display: flex;
}

.ds-table-batch__left,
.ds-table-batch__right {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
}

.ds-table-batch__count {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
}

/* ============================================================
   Table base
   ============================================================ */
.ds-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

/* head */
.ds-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-table-head-text);
  background: var(--ds-table-head-bg);
  padding: var(--ds-table-cell-py) var(--ds-table-cell-px);
  border-bottom: 1px solid var(--ds-table-border);
  /* se um dia usar .ds-table-wrap--scroll (overflow-y), habilita sticky */
  position: sticky;
  top: 0;
  z-index: 1;
}

/* cells */
.ds-table td {
  padding: var(--ds-table-cell-py) var(--ds-table-cell-px);
  border-bottom: 1px solid var(--ds-table-border);
  vertical-align: middle;
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  background: transparent;
}

/* last row border remove */
.ds-table tbody tr:last-child td {
  border-bottom: 0;
}

/* row hover */
.ds-table tbody tr:hover td {
  background: var(--ds-table-row-hover);
}

/* selected row (aplique .is-selected no <tr>) */
.ds-table tbody tr.is-selected td {
  background: var(--ds-table-row-selected);
}

/* focus within row (inputs/checkbox) */
.ds-table tbody tr:focus-within td {
  box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--ds-blue-50) 6%, transparent);
}

/* ============================================================
   Density (Carbon-style)
   - sm: mais compacto
   - xs: ultra compacto (CRM)
   ============================================================ */
.ds-table--density-sm {
  --ds-table-cell-py: var(--ds-space-2);
  --ds-table-cell-px: var(--ds-space-3);
}

.ds-table--density-xs {
  --ds-table-cell-py: 6px;
  --ds-table-cell-px: var(--ds-space-3);
}

.ds-table--density-xs td,
.ds-table--density-xs thead th {
  font-size: 12px;
}

/* deixa os icon-buttons mais “tight” dentro da tabela */
.ds-table--density-sm .ds-icon-button,
.ds-table--density-xs .ds-icon-button {
  --ds-icon-btn-size: 32px;
}

.ds-table--density-xs .ds-icon-button {
  --ds-icon-btn-size: 30px;
}

/* ============================================================
   Helpers
   ============================================================ */
.ds-table__cell--right {
  text-align: right;
}

.ds-table__cell--center {
  text-align: center;
}

.ds-table__cell--muted {
  color: var(--ds-text-secondary);
}

/* coluna de checkbox (Carbon-like) */
.ds-table__cell--check {
  width: 1%;
  white-space: nowrap;
}

.ds-table__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* status pill (optional) */
.ds-table__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-text-secondary);
}

/* actions column */
.ds-table__cell--actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

/* actions container (suporta os 2 nomes) */
.ds-table__actions,
.ds-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ============================================================
   Pagination (rodapé da tabela)
   Use:
   <div class="ds-table-pagination">...</div>
   ============================================================ */
.ds-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-5);
  border-top: 1px solid var(--ds-table-border);
  background: var(--ds-table-bg);
}

.ds-table-pagination__left,
.ds-table-pagination__right {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
}

.ds-table-pagination__meta {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  white-space: nowrap;
}

/* ============================================================
   Property Card (Premium)
   - badge variants via .ds-badge
   - optional chips
   - states: is-featured | is-sold
   - location: 2 lines (bairro + cidade), premium truncation
   ============================================================ */
:root {
  --ds-card-radius: var(--ds-radius-4);
  --ds-card-bg: var(--ds-layer-01);
  --ds-card-border: var(--ds-border-subtle);
  --ds-card-shadow: var(--ds-shadow-sm);
  --ds-card-shadow-hover: var(--ds-shadow-md);
  --ds-price-color: var(--ds-blue-80);
  /* Chips */
  --ds-chip-radius: var(--ds-radius-pill);
  --ds-chip-bg: color-mix(in srgb, var(--ds-gray-700) 8%, #fff);
  --ds-chip-border: color-mix(in srgb, var(--ds-gray-300) 55%, transparent);
  --ds-chip-text: var(--ds-text-secondary);
  --ds-chip-font-size: 12px;
  --ds-chip-padding-y: 6px;
  --ds-chip-padding-x: 10px;
}

/* Card container */
.ds-property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--ds-card-radius);
  background: var(--ds-card-bg);
  border: 1px solid var(--ds-card-border);
  box-shadow: var(--ds-card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Link wrapper (sem decoração) */
.ds-property-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ds-property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ds-card-shadow-hover);
  border-color: color-mix(in srgb, var(--ds-blue-30) 55%, var(--ds-card-border));
}

.ds-property-card:focus-visible {
  outline: none;
  box-shadow: var(--ds-card-shadow-hover), var(--ds-focus-ring);
}

/* Optional states */
.ds-property-card.is-featured {
  border-color: color-mix(in srgb, var(--ds-blue-30) 60%, var(--ds-card-border));
}

.ds-property-card.is-sold {
  opacity: 0.78;
}

.ds-property-card.is-sold:hover {
  transform: none;
  box-shadow: var(--ds-card-shadow);
}

/* Media */
.ds-property-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: color-mix(in srgb, var(--ds-gray-100) 70%, #fff);
}

.ds-property-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge positioning (now uses .ds-badge) */
.ds-property-card__badge {
  position: absolute;
  top: var(--ds-space-3);
  left: var(--ds-space-3);
}

/* Body */
.ds-property-card__body {
  padding: var(--ds-space-5);
  display: grid;
  gap: var(--ds-space-3);
  flex: 1;
}

/* Category */
.ds-property-card__category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-interactive-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Title */
.ds-property-card__title {
  font-size: var(--ds-heading-sm-size);
  font-weight: var(--ds-heading-sm-weight);
  line-height: var(--ds-line-height-heading);
  letter-spacing: var(--ds-letter-spacing-heading);
  color: var(--ds-text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* padrão (alguns browsers já entendem) */
  line-clamp: 2;
  /* o que garante suporte hoje */
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ============================================================
   Location (2 lines: bairro + cidade)
   HTML esperado:
   <div class="ds-property-card__location">
     <span class="ds-icon">...</span>
     <span class="ds-location">
        <span class="ds-location__line">Bairro</span>
        <span class="ds-location__line ds-location__line--muted">Cidade</span>
     </span>
   </div>
   ============================================================ */
.ds-property-card__location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ds-text-secondary);
  font-size: var(--ds-body-sm-size);
  line-height: var(--ds-line-height-body);
}

/* wrapper das 2 linhas */
.ds-location {
  display: grid;
  gap: 2px;
  min-width: 0; /* ESSENCIAL p/ truncar dentro de flex */
}

/* cada linha com ellipsis premium */
.ds-location__line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* cidade menor e mais suave */
.ds-location__line--muted {
  font-size: 12px;
  opacity: 0.9;
}

/* Divider */
.ds-property-card__divider {
  height: 1px;
  background: var(--ds-border-subtle);
  margin: var(--ds-space-2) 0;
}

/* Features */
.ds-property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-4);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

.ds-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Chips (optional block) */
.ds-property-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-2);
}

.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--ds-chip-padding-y) var(--ds-chip-padding-x);
  border-radius: var(--ds-chip-radius);
  font-size: var(--ds-chip-font-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-chip-text);
  background: var(--ds-chip-bg);
  border: 1px solid var(--ds-chip-border);
  white-space: nowrap;
}

/* Footer */
.ds-property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: 0 var(--ds-space-5) var(--ds-space-5);
}

.ds-property-card__price {
  font-size: var(--ds-heading-md-size);
  font-weight: var(--ds-heading-md-weight);
  color: var(--ds-price-color);
  letter-spacing: var(--ds-letter-spacing-heading);
  white-space: nowrap;
}

/* Hint - "Ver detalhes" */
.ds-property-card__hint {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-interactive-primary);
  font-weight: var(--ds-font-weight-medium);
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.9;
}

.ds-property-card:hover .ds-property-card__hint,
.ds-property-card:focus-visible .ds-property-card__hint {
  transform: translateX(4px);
  opacity: 1;
  text-decoration: none;
}

/* Icon consistency inside card (minimal, always same color) */
.ds-property-card .ds-icon {
  color: var(--ds-text-secondary);
}

/* design-system/components/_forms.scss
   ============================================================
   Forms (Carbon-ish)
   - ds-field (label/helper/message)
   - ds-input / ds-textarea / ds-select
   - states: focus/disabled/readonly/invalid/warning
   ============================================================ */
:root {
  --ds-form-bg: var(--ds-layer-01);
  --ds-form-text: var(--ds-text-primary);
  --ds-form-muted: var(--ds-text-secondary);
  --ds-form-border: var(--ds-border-subtle);
  --ds-form-border-hover: color-mix(in srgb, var(--ds-border-subtle) 55%, var(--ds-text-primary));
  --ds-form-radius: var(--ds-radius-3);
  /* focus token (se existir no semantic/focus) */
  --ds-form-focus: var(--ds-focus, var(--ds-blue-50));
  --ds-form-focus-ring: color-mix(in srgb, var(--ds-form-focus) 35%, transparent);
  /* feedback tokens (se existirem no semantic/feedback) */
  --ds-form-danger: var(--ds-danger, #da1e28);
  --ds-form-warning: var(--ds-warning, #f1c21b);
  --ds-form-gap: var(--ds-space-2);
  --ds-form-pad-x: var(--ds-space-3);
  --ds-form-pad-y: 10px;
  --ds-form-h-md: 40px;
  --ds-form-h-sm: 34px;
  --ds-form-h-lg: 46px;
  --ds-form-font: var(--ds-font-family, inherit);
  --ds-form-font-size: var(--ds-body-sm-size);
}

/* ============================================================
   Field wrapper
   ============================================================ */
.ds-field {
  min-width: 0; /* evita overflow em grid */
  display: grid;
  gap: var(--ds-form-gap);
}

/* garante mesma altura do input */
.ds-select {
  height: var(--ds-form-h-md);
}

.ds-select.ds-select--sm {
  height: var(--ds-form-h-sm);
}

.ds-select.ds-select--lg {
  height: var(--ds-form-h-lg);
}

.ds-field__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ds-form-muted);
  font-weight: var(--ds-font-weight-medium);
}

.ds-field__helper {
  font-size: 12px;
  color: var(--ds-form-muted);
}

.ds-field__message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--ds-form-muted);
}

.ds-field.is-invalid .ds-field__message {
  color: var(--ds-form-danger);
}

.ds-field.is-warning .ds-field__message {
  color: color-mix(in srgb, var(--ds-form-warning) 80%, var(--ds-form-text));
}

/* ============================================================
   Inputs base
   ============================================================ */
.ds-input,
.ds-textarea,
.ds-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--ds-form-font);
  font-size: var(--ds-form-font-size);
  color: var(--ds-form-text);
  background: var(--ds-form-bg);
  border: 1px solid var(--ds-form-border);
  border-radius: var(--ds-form-radius);
  padding: var(--ds-form-pad-y) var(--ds-form-pad-x);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ds-input {
  height: var(--ds-form-h-md);
}

.ds-input.ds-input--sm {
  height: var(--ds-form-h-sm);
  padding: 8px var(--ds-form-pad-x);
}

.ds-input.ds-input--lg {
  height: var(--ds-form-h-lg);
  padding: 12px var(--ds-form-pad-x);
}

.ds-textarea {
  min-height: 120px;
  resize: vertical;
}

/* hover */
.ds-input:hover,
.ds-textarea:hover,
.ds-select:hover {
  border-color: var(--ds-form-border-hover);
}

/* focus */
.ds-input:focus,
.ds-textarea:focus,
.ds-select:focus {
  border-color: var(--ds-form-focus);
  box-shadow: 0 0 0 3px var(--ds-form-focus-ring);
}

/* placeholder */
.ds-input::placeholder,
.ds-textarea::placeholder {
  color: color-mix(in srgb, var(--ds-form-muted) 75%, #fff);
}

/* disabled */
.ds-input:disabled,
.ds-textarea:disabled,
.ds-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--ds-form-bg) 85%, #fff);
}

/* readonly */
.ds-input[readonly],
.ds-textarea[readonly] {
  background: color-mix(in srgb, var(--ds-form-bg) 85%, #fff);
}

/* ============================================================
   Estados via wrapper (.ds-field)
   ============================================================ */
.ds-field.is-invalid .ds-input,
.ds-field.is-invalid .ds-textarea,
.ds-field.is-invalid .ds-select {
  border-color: var(--ds-form-danger);
}

.ds-field.is-invalid .ds-input:focus,
.ds-field.is-invalid .ds-textarea:focus,
.ds-field.is-invalid .ds-select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-form-danger) 25%, transparent);
}

.ds-field.is-warning .ds-input,
.ds-field.is-warning .ds-textarea,
.ds-field.is-warning .ds-select {
  border-color: color-mix(in srgb, var(--ds-form-warning) 80%, var(--ds-form-text));
}

.ds-field.is-warning .ds-input:focus,
.ds-field.is-warning .ds-textarea:focus,
.ds-field.is-warning .ds-select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-form-warning) 25%, transparent);
}

/* ============================================================
   Select (seta simples)
   ============================================================ */
.ds-select {
  appearance: none;
  padding-right: calc(var(--ds-form-pad-x) + 18px);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ds-select.ds-select--sm {
  height: var(--ds-form-h-sm);
  padding-top: 6px;
  padding-bottom: 6px;
}

.ds-select.ds-select--lg {
  height: var(--ds-form-h-lg);
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.ds-form-row {
  display: grid;
  gap: var(--ds-space-4);
}

.ds-form-row.ds-form-row--2 {
  grid-template-columns: 1fr;
}

.ds-form-row.ds-form-row--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ds-form-row.ds-form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds-form-row.ds-form-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* design-system/components/_choice.scss
   ============================================================
   Choice (Carbon-ish)
   - checkbox / radio (nativo com accent-color)
   - disabled + focus-visible
   - invalid/warning via .ds-field
   ============================================================ */
:root {
  --ds-choice-size: 16px;
  --ds-choice-gap: 10px;
  --ds-choice-accent: var(--ds-blue-50);
  --ds-choice-danger: var(--ds-danger, #da1e28);
  --ds-choice-warning: var(--ds-warning, #f1c21b);
}

/* checkbox / radio label wrappers */
.ds-check,
.ds-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-choice-gap);
  line-height: 1.2;
  color: var(--ds-text-primary);
  cursor: pointer;
  user-select: none;
}

/* input nativo */
.ds-check input[type=checkbox],
.ds-radio input[type=radio] {
  width: var(--ds-choice-size);
  height: var(--ds-choice-size);
  margin: 0;
  accent-color: var(--ds-choice-accent);
  cursor: pointer;
}

/* texto (opcional) */
.ds-check__label,
.ds-radio__label {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
}

.ds-check__helper,
.ds-radio__helper {
  font-size: 12px;
  color: var(--ds-text-secondary);
}

/* disabled */
.ds-check input:disabled,
.ds-radio input:disabled {
  cursor: not-allowed;
}

.ds-check:has(input:disabled),
.ds-radio:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* foco acessível */
.ds-check input:focus-visible,
.ds-radio input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-choice-accent) 28%, transparent);
  border-radius: 4px;
}

/* estados via wrapper */
.ds-field.is-invalid .ds-check input[type=checkbox],
.ds-field.is-invalid .ds-radio input[type=radio] {
  accent-color: var(--ds-choice-danger);
}

.ds-field.is-warning .ds-check input[type=checkbox],
.ds-field.is-warning .ds-radio input[type=radio] {
  accent-color: color-mix(in srgb, var(--ds-choice-warning) 85%, #000);
}

/* grupos */
.ds-choice-group {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-choice-group--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-4);
}

/* ============================================================
   Breadcrumb (Carbon-ish)
   Use:
   <nav class="ds-breadcrumb" aria-label="Breadcrumb">
     <ol class="ds-breadcrumb__list">
       <li class="ds-breadcrumb__item"><a class="ds-breadcrumb__link" href="#">Dashboard</a></li>
       <li class="ds-breadcrumb__item"><a class="ds-breadcrumb__link" href="#">Usuários</a></li>
       <li class="ds-breadcrumb__item is-current" aria-current="page">
         <span class="ds-breadcrumb__current">Listagem</span>
       </li>
     </ol>
   </nav>
   ============================================================ */
:root {
  --ds-breadcrumb-gap: var(--ds-space-2);
  --ds-breadcrumb-font-size: var(--ds-body-sm-size);
  --ds-breadcrumb-link: var(--ds-link-primary);
  --ds-breadcrumb-link-hover: var(--ds-link-hover);
  --ds-breadcrumb-current: var(--ds-text-primary);
  --ds-breadcrumb-sep: var(--ds-text-tertiary, var(--ds-text-secondary));
  --ds-breadcrumb-sep-size: 14px;
}

.ds-breadcrumb {
  width: 100%;
}

.ds-breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-breadcrumb-gap);
  padding: 0;
  margin: 0;
  font-size: var(--ds-breadcrumb-font-size);
}

.ds-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* separador automático entre itens */
.ds-breadcrumb__item + .ds-breadcrumb__item::before {
  content: "›";
  display: inline-block;
  margin: 0 var(--ds-space-2);
  font-size: var(--ds-breadcrumb-sep-size);
  line-height: 1;
  color: var(--ds-breadcrumb-sep);
  transform: translateY(-0.5px);
}

/* link */
.ds-breadcrumb__link {
  color: var(--ds-breadcrumb-link);
  text-decoration: none;
  border-radius: var(--ds-radius-3);
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.ds-breadcrumb__link:hover {
  color: var(--ds-breadcrumb-link-hover);
  text-decoration: underline;
}

.ds-breadcrumb__link:focus-visible {
  box-shadow: 0 0 0 2px var(--ds-focus-ring, color-mix(in srgb, var(--ds-blue-50) 40%, transparent));
}

/* current */
.ds-breadcrumb__item.is-current::before {
  color: var(--ds-breadcrumb-sep);
}

.ds-breadcrumb__current {
  color: var(--ds-breadcrumb-current);
  font-weight: var(--ds-font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 4px;
  border-radius: var(--ds-radius-3);
}

/* ============================================================
   Modal (Carbon-ish)
   - overlay + dialog + header + body + footer
   - footer com 2 botões: secundário (escuro) + primário (azul)
   ============================================================ */
:root {
  --ds-modal-overlay: color-mix(in srgb, #000 55%, transparent);
  --ds-modal-bg: var(--ds-layer-01);
  --ds-modal-border: var(--ds-border-subtle);
  --ds-modal-radius: var(--ds-radius-5);
  --ds-modal-max-w: 720px;
  --ds-modal-padding-x: var(--ds-space-6);
  --ds-modal-padding-y: var(--ds-space-5);
}

/* overlay */
.ds-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-6);
  background: var(--ds-modal-overlay);
}

.ds-modal.is-open {
  display: flex;
}

/* dialog */
.ds-modal__dialog {
  width: min(100%, var(--ds-modal-max-w));
  border-radius: var(--ds-modal-radius);
  background: var(--ds-modal-bg);
  border: 1px solid var(--ds-modal-border);
  box-shadow: var(--ds-shadow-lg);
  overflow: hidden;
}

/* header */
.ds-modal__header {
  padding: var(--ds-modal-padding-y) var(--ds-modal-padding-x);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-4);
}

.ds-modal__label {
  font-size: 12px;
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-1);
}

.ds-modal__title {
  font-size: 20px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  line-height: 1.2;
}

.ds-modal__subtitle {
  margin-top: var(--ds-space-2);
  color: var(--ds-text-secondary);
  font-size: var(--ds-body-sm-size);
}

.ds-modal__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--ds-radius-3);
  color: var(--ds-text-secondary);
}

.ds-modal__close:hover {
  background: color-mix(in srgb, var(--ds-gray-200) 55%, transparent);
}

.ds-modal__close:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus-ring);
}

/* body */
.ds-modal__body {
  padding: 0 var(--ds-modal-padding-x) var(--ds-modal-padding-y);
}

.ds-modal__divider {
  height: 1px;
  background: var(--ds-modal-border);
  margin: var(--ds-space-4) 0;
}

.ds-modal__question {
  font-size: 16px;
  color: var(--ds-text-primary);
  line-height: 1.5;
}

.ds-modal__question strong {
  font-weight: var(--ds-font-weight-semibold);
}

.ds-modal__danger-name {
  color: var(--ds-feedback-danger);
  font-weight: var(--ds-font-weight-semibold);
}

/* footer (igual Carbon: barra com botões alinhados à direita) */
.ds-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  border-top: 1px solid var(--ds-modal-border);
  background: var(--ds-modal-bg);
}

/* “blocos” do footer (escuro + azul) */
.ds-modal__footer .ds-btn {
  border-radius: 0;
  min-width: 180px;
  height: 52px;
  justify-content: center;
}

/* Cancelar: secundário (escuro) */
.ds-modal__footer .ds-btn--secondary {
  background: var(--ds-gray-900);
  color: #fff;
  border: 0;
}

.ds-modal__footer .ds-btn--secondary:hover {
  background: color-mix(in srgb, var(--ds-gray-900) 88%, #000);
}

/* Confirmar: primário (azul) */
.ds-modal__footer .ds-btn--primary {
  border: 0;
}

/* responsivo: em telas pequenas empilha */
@media (max-width: 520px) {
  .ds-modal__footer {
    flex-direction: column;
  }
  .ds-modal__footer .ds-btn {
    width: 100%;
    min-width: 0;
  }
}
/* admin components */
/* design-system/components/_sidebar.scss
   ============================================================
   Sidebar (Carbon-ish)
   - navegação lateral fixa
   - menu expansível/colapsável
   - tema escuro
   ============================================================ */
:root {
  --ds-sidebar-width: 256px;
  --ds-sidebar-width-collapsed: 64px;
  --ds-sidebar-bg: var(--ds-gray-900);
  --ds-sidebar-border: color-mix(in srgb, var(--ds-gray-700) 40%, transparent);
  --ds-sidebar-text: var(--ds-gray-300);
  --ds-sidebar-text-hover: var(--ds-gray-100);
  --ds-sidebar-text-active: #ffffff;
  --ds-sidebar-item-hover: color-mix(in srgb, var(--ds-gray-700) 35%, transparent);
  --ds-sidebar-item-active: color-mix(in srgb, var(--ds-blue-60) 18%, transparent);
  --ds-sidebar-item-active-border: var(--ds-blue-50);
  --ds-sidebar-header-h: 64px;
  --ds-sidebar-item-h: 48px;
  --ds-sidebar-transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Container principal
   ============================================================ */
.ds-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--ds-sidebar-width);
  background: var(--ds-sidebar-bg);
  border-right: 1px solid var(--ds-sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--ds-sidebar-transition);
}

.ds-sidebar.is-collapsed {
  width: var(--ds-sidebar-width-collapsed);
}

/* ============================================================
   Header (logo + toggle)
   ============================================================ */
.ds-sidebar__header {
  height: var(--ds-sidebar-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--ds-space-4);
  border-bottom: 1px solid var(--ds-sidebar-border);
  flex-shrink: 0;
}

.ds-sidebar__logo {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-sidebar-text-active);
  font-size: 18px;
  font-weight: var(--ds-font-weight-semibold);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.ds-sidebar__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-blue-60);
  border-radius: var(--ds-radius-2);
  color: #fff;
}

.ds-sidebar__logo-text {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ds-sidebar.is-collapsed .ds-sidebar__logo-text {
  opacity: 0;
  width: 0;
}

.ds-sidebar__toggle {
  background: transparent;
  border: 0;
  color: var(--ds-sidebar-text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--ds-radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ds-sidebar__toggle:hover {
  background: var(--ds-sidebar-item-hover);
  color: var(--ds-sidebar-text-hover);
}

.ds-sidebar.is-collapsed .ds-sidebar__toggle {
  margin: 0 auto;
}

/* ============================================================
   Nav (menu items)
   ============================================================ */
.ds-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--ds-space-4) 0;
}

.ds-sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.ds-sidebar__nav::-webkit-scrollbar-track {
  background: transparent;
}

.ds-sidebar__nav::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ds-gray-700) 50%, transparent);
  border-radius: 3px;
}

.ds-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: var(--ds-gray-700);
}

/* ============================================================
   Menu Items
   ============================================================ */
.ds-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-sidebar__item {
  position: relative;
}

.ds-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  height: var(--ds-sidebar-item-h);
  padding: 0 var(--ds-space-4);
  color: var(--ds-sidebar-text);
  text-decoration: none;
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-regular);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.ds-sidebar__link:hover {
  background: var(--ds-sidebar-item-hover);
  color: var(--ds-sidebar-text-hover);
}

.ds-sidebar__link.is-active {
  background: var(--ds-sidebar-item-active);
  color: var(--ds-sidebar-text-active);
  border-left-color: var(--ds-sidebar-item-active-border);
  font-weight: var(--ds-font-weight-medium);
}

.ds-sidebar__link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-sidebar__link-icon svg {
  width: 100%;
  height: 100%;
}

.ds-sidebar__link-text {
  flex: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ds-sidebar.is-collapsed .ds-sidebar__link-text {
  opacity: 0;
  width: 0;
}

/* Badge (contador) */
.ds-sidebar__badge {
  background: var(--ds-blue-60);
  color: #fff;
  font-size: 11px;
  font-weight: var(--ds-font-weight-semibold);
  padding: 2px 6px;
  border-radius: var(--ds-radius-pill);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ds-sidebar.is-collapsed .ds-sidebar__badge {
  opacity: 0;
  width: 0;
  padding: 0;
}

/* ============================================================
   Divider / Seção
   ============================================================ */
.ds-sidebar__section {
  padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-2);
  color: var(--ds-gray-500);
  font-size: 11px;
  font-weight: var(--ds-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ds-sidebar.is-collapsed .ds-sidebar__section {
  opacity: 0;
  padding-top: var(--ds-space-2);
  padding-bottom: var(--ds-space-2);
}

.ds-sidebar__divider {
  height: 1px;
  background: var(--ds-sidebar-border);
  margin: var(--ds-space-4) var(--ds-space-4);
}

/* ============================================================
   Footer (user info)
   ============================================================ */
.ds-sidebar__footer {
  border-top: 1px solid var(--ds-sidebar-border);
  padding: var(--ds-space-4);
  flex-shrink: 0;
}

.ds-sidebar__user {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2);
  border-radius: var(--ds-radius-2);
  cursor: pointer;
  transition: background 0.15s ease;
  overflow: hidden;
}

.ds-sidebar__user:hover {
  background: var(--ds-sidebar-item-hover);
}

.ds-sidebar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ds-blue-60);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--ds-font-weight-semibold);
  font-size: 14px;
  flex-shrink: 0;
}

.ds-sidebar__user-info {
  flex: 1;
  min-width: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.ds-sidebar.is-collapsed .ds-sidebar__user-info {
  opacity: 0;
  width: 0;
}

.ds-sidebar__user-name {
  color: var(--ds-sidebar-text-active);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-sidebar__user-role {
  color: var(--ds-sidebar-text);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 768px) {
  .ds-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .ds-sidebar.is-open {
    transform: translateX(0);
  }
  /* Overlay mobile */
  .ds-sidebar::before {
    content: "";
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, #000 50%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  .ds-sidebar.is-open::before {
    opacity: 1;
    pointer-events: auto;
  }
}
/* design-system/components/_nested-menu.scss
   ============================================================
   Nested Menu / Menu Cascata (Carbon-ish)
   - menu com submenus (accordion-style)
   - integrado com sidebar
   - expansão/colapso suave
   - indicador de item ativo em qualquer nível
   ============================================================ */
:root {
  --ds-nested-menu-submenu-indent: 16px;
  --ds-nested-menu-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ds-nested-menu-bg-hover: color-mix(in srgb, var(--ds-gray-700) 35%, transparent);
  --ds-nested-menu-bg-active: color-mix(in srgb, var(--ds-blue-60) 18%, transparent);
  --ds-nested-menu-chevron-size: 16px;
}

/* ============================================================
   Nested Menu Item (com submenu)
   ============================================================ */
.ds-sidebar__item--nested {
  /* Container do item com submenu */
}

/* Link/Button com submenu */
.ds-sidebar__link--parent {
  position: relative;
  padding-right: calc(var(--ds-space-4) + var(--ds-nested-menu-chevron-size) + 8px);
}

/* ============================================================
   Chevron (indicador de expansão)
   ============================================================ */
.ds-sidebar__chevron {
  position: absolute;
  right: var(--ds-space-4);
  top: 50%;
  transform: translateY(-50%);
  width: var(--ds-nested-menu-chevron-size);
  height: var(--ds-nested-menu-chevron-size);
  color: var(--ds-sidebar-text);
  transition: transform var(--ds-nested-menu-transition);
  pointer-events: none;
}

/* Rotação quando aberto */
.ds-sidebar__item--nested.is-open > .ds-sidebar__link--parent .ds-sidebar__chevron {
  transform: translateY(-50%) rotate(180deg);
}

/* Esconder chevron quando sidebar está colapsada */
.ds-sidebar.is-collapsed .ds-sidebar__chevron {
  opacity: 0;
}

/* ============================================================
   Submenu
   ============================================================ */
.ds-sidebar__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ds-nested-menu-transition);
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-sidebar__item--nested.is-open > .ds-sidebar__submenu {
  max-height: 1000px; /* Ajustar conforme necessário */
}

/* Esconder submenu quando sidebar está colapsada */
.ds-sidebar.is-collapsed .ds-sidebar__submenu {
  display: none;
}

/* ============================================================
   Submenu Items
   ============================================================ */
.ds-sidebar__submenu .ds-sidebar__item {
  position: relative;
}

.ds-sidebar__submenu .ds-sidebar__link {
  padding-left: calc(var(--ds-space-4) + var(--ds-nested-menu-submenu-indent) + 20px);
  font-size: 13px;
  /* Linha conectora visual (opcional) */
}
.ds-sidebar__submenu .ds-sidebar__link::before {
  content: "";
  position: absolute;
  left: calc(var(--ds-space-4) + 10px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--ds-gray-700) 30%, transparent);
}

/* Bullet point nos subitems */
.ds-sidebar__submenu .ds-sidebar__link::after {
  content: "";
  position: absolute;
  left: calc(var(--ds-space-4) + 7px);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ds-sidebar-text);
  opacity: 0.5;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ds-sidebar__submenu .ds-sidebar__link:hover::after,
.ds-sidebar__submenu .ds-sidebar__link.is-active::after {
  opacity: 1;
  background: var(--ds-sidebar-item-active-border);
}

/* Remover bullet do último item */
.ds-sidebar__submenu .ds-sidebar__item:last-child .ds-sidebar__link::before {
  bottom: 50%;
}

/* ============================================================
   Submenus Aninhados (3º nível)
   ============================================================ */
.ds-sidebar__submenu .ds-sidebar__submenu .ds-sidebar__link {
  padding-left: calc(var(--ds-space-4) + var(--ds-nested-menu-submenu-indent) * 2 + 20px);
}

.ds-sidebar__submenu .ds-sidebar__submenu .ds-sidebar__link::before {
  left: calc(var(--ds-space-4) + var(--ds-nested-menu-submenu-indent) + 10px);
}

.ds-sidebar__submenu .ds-sidebar__submenu .ds-sidebar__link::after {
  left: calc(var(--ds-space-4) + var(--ds-nested-menu-submenu-indent) + 7px);
}

/* ============================================================
   Badge em item com submenu
   ============================================================ */
.ds-sidebar__link--parent .ds-sidebar__badge {
  margin-right: calc(var(--ds-nested-menu-chevron-size) + 8px);
}

/* ============================================================
   Hover/Active States para Parent Items
   ============================================================ */
.ds-sidebar__link--parent:hover {
  background: var(--ds-nested-menu-bg-hover);
}

.ds-sidebar__item--nested.is-open > .ds-sidebar__link--parent {
  background: var(--ds-nested-menu-bg-hover);
}

/* Parent ativo quando tem filho ativo */
.ds-sidebar__item--nested.has-active-child > .ds-sidebar__link--parent {
  color: var(--ds-sidebar-text-hover);
}

/* ============================================================
   Animation quando abre
   ============================================================ */
@keyframes submenuFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ds-sidebar__item--nested.is-open > .ds-sidebar__submenu {
  animation: submenuFadeIn 0.3s ease;
}

/* ============================================================
   Compact Mode (sidebar menor)
   ============================================================ */
.ds-sidebar--compact .ds-sidebar__submenu .ds-sidebar__link {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  min-height: 40px;
}

/* ============================================================
   Mobile Behavior
   ============================================================ */
@media (max-width: 768px) {
  /* Em mobile, submenu sempre visível quando o parent está ativo */
  .ds-sidebar.is-open .ds-sidebar__item--nested.has-active-child > .ds-sidebar__submenu {
    max-height: 1000px;
  }
}
/* ============================================================
   Tooltip quando sidebar está colapsada (opcional)
   ============================================================ */
.ds-sidebar.is-collapsed .ds-sidebar__link--parent:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ds-gray-900);
  color: white;
  padding: 8px 12px;
  border-radius: var(--ds-radius-2);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--ds-shadow-md);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
  to {
    opacity: 1;
  }
}
/* ============================================================
   Divider entre grupos de menu
   ============================================================ */
.ds-sidebar__menu-group {
  position: relative;
  padding-top: var(--ds-space-2);
}

.ds-sidebar__menu-group:not(:first-child) {
  margin-top: var(--ds-space-4);
}

.ds-sidebar__menu-group:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--ds-space-4);
  right: var(--ds-space-4);
  height: 1px;
  background: var(--ds-sidebar-border);
}

/* ============================================================
   Loading State (opcional)
   ============================================================ */
.ds-sidebar__submenu--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-3);
}

.ds-sidebar__submenu-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ds-sidebar-border);
  border-top-color: var(--ds-sidebar-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* design-system/components/_header.scss
   ============================================================
   Header/Topbar (Carbon-ish)
   - barra superior fixa
   - breadcrumb, search, notifications, user menu
   ============================================================ */
:root {
  --ds-header-h: 64px;
  --ds-header-bg: var(--ds-layer-01);
  --ds-header-border: var(--ds-border-subtle);
  --ds-header-shadow: var(--ds-shadow-sm);
}

/* ============================================================
   Container principal
   ============================================================ */
.ds-header {
  position: fixed;
  top: 0;
  left: var(--ds-sidebar-width);
  right: 0;
  height: var(--ds-header-h);
  background: var(--ds-header-bg);
  border-bottom: 1px solid var(--ds-header-border);
  box-shadow: var(--ds-header-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: 0 var(--ds-space-6);
  z-index: 999;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando sidebar está colapsada */
.ds-sidebar.is-collapsed ~ .ds-header,
body:has(.ds-sidebar.is-collapsed) .ds-header {
  left: var(--ds-sidebar-width-collapsed);
}

/* ============================================================
   Left side (breadcrumb + title)
   ============================================================ */
.ds-header__left {
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
  flex: 1;
  min-width: 0;
}

.ds-header__menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ds-text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--ds-radius-2);
}

.ds-header__menu-toggle:hover {
  background: var(--ds-layer-02);
}

.ds-header__title {
  font-size: 20px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Right side (search, notifications, user)
   ============================================================ */
.ds-header__right {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}

/* Search */
.ds-header__search {
  position: relative;
  width: 280px;
}

.ds-header__search-input {
  width: 100%;
  height: 40px;
  padding: 0 var(--ds-space-3) 0 40px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-3);
  background: var(--ds-layer-01);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-header__search-input:focus {
  outline: none;
  border-color: var(--ds-blue-60);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-blue-60) 20%, transparent);
}

.ds-header__search-input::placeholder {
  color: var(--ds-text-secondary);
}

.ds-header__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ds-text-secondary);
  pointer-events: none;
}

/* Notifications & User buttons */
.ds-header__icon-btn {
  position: relative;
  background: transparent;
  border: 0;
  color: var(--ds-text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-2);
  transition: background 0.15s ease;
}

.ds-header__icon-btn:hover {
  background: var(--ds-layer-02);
}

.ds-header__icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Badge (contador) */
.ds-header__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--ds-red-600);
  color: #fff;
  font-size: 10px;
  font-weight: var(--ds-font-weight-bold);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-pill);
  border: 2px solid var(--ds-header-bg);
}

/* User dropdown button */
.ds-header__user {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 12px 6px 6px;
  border-radius: var(--ds-radius-3);
  transition: background 0.15s ease;
}

.ds-header__user:hover {
  background: var(--ds-layer-02);
}

.ds-header__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ds-blue-60);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--ds-font-weight-semibold);
}

.ds-header__user-name {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-primary);
}

.ds-header__user-chevron {
  width: 16px;
  height: 16px;
  color: var(--ds-text-secondary);
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1024px) {
  .ds-header__search {
    width: 200px;
  }
}
@media (max-width: 768px) {
  .ds-header {
    left: 0;
  }
  .ds-header__menu-toggle {
    display: flex;
  }
  .ds-header__search {
    display: none;
  }
  .ds-header__user-name {
    display: none;
  }
  .ds-header__user-chevron {
    display: none;
  }
}
@media (max-width: 480px) {
  .ds-header {
    padding: 0 var(--ds-space-4);
  }
  .ds-header__title {
    font-size: 16px;
  }
}
/* design-system/components/_stat-card.scss
   ============================================================
   Stat Card (Carbon-ish)
   - cards de métricas para dashboard
   - suporta trend (up/down), sparkline
   ============================================================ */
:root {
  --ds-stat-card-bg: var(--ds-layer-01);
  --ds-stat-card-border: var(--ds-border-subtle);
  --ds-stat-card-radius: var(--ds-radius-3);
  --ds-stat-card-padding: var(--ds-space-5);
  --ds-stat-card-shadow: var(--ds-shadow-sm);
  --ds-stat-trend-up: var(--ds-green-600);
  --ds-stat-trend-down: var(--ds-red-600);
}

/* ============================================================
   Container
   ============================================================ */
.ds-stat-card {
  background: var(--ds-stat-card-bg);
  border: 1px solid var(--ds-stat-card-border);
  border-radius: var(--ds-stat-card-radius);
  padding: var(--ds-stat-card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ds-stat-card:hover {
  box-shadow: var(--ds-stat-card-shadow);
  border-color: color-mix(in srgb, var(--ds-border-subtle) 70%, var(--ds-text-primary));
}

/* ============================================================
   Header
   ============================================================ */
.ds-stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
}

.ds-stat-card__label {
  font-size: 13px;
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ds-stat-card__icon {
  width: 20px;
  height: 20px;
  color: var(--ds-text-secondary);
  flex-shrink: 0;
}

/* ============================================================
   Value
   ============================================================ */
.ds-stat-card__value {
  font-size: 32px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  line-height: 1;
}

.ds-stat-card__value--large {
  font-size: 40px;
}

.ds-stat-card__value--small {
  font-size: 24px;
}

/* ============================================================
   Trend
   ============================================================ */
.ds-stat-card__trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: var(--ds-font-weight-medium);
}

.ds-stat-card__trend--up {
  color: var(--ds-stat-trend-up);
}

.ds-stat-card__trend--down {
  color: var(--ds-stat-trend-down);
}

.ds-stat-card__trend-icon {
  width: 16px;
  height: 16px;
}

.ds-stat-card__trend-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ds-stat-card__trend-value {
  font-weight: var(--ds-font-weight-semibold);
}

.ds-stat-card__trend-period {
  color: var(--ds-text-secondary);
  font-weight: var(--ds-font-weight-regular);
}

/* ============================================================
   Footer / Description
   ============================================================ */
.ds-stat-card__footer {
  padding-top: var(--ds-space-2);
  border-top: 1px solid var(--ds-stat-card-border);
  font-size: 12px;
  color: var(--ds-text-secondary);
  line-height: 1.4;
}

.ds-stat-card__link {
  color: var(--ds-blue-60);
  text-decoration: none;
  font-weight: var(--ds-font-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-stat-card__link:hover {
  text-decoration: underline;
}

/* ============================================================
   Variantes de cor
   ============================================================ */
.ds-stat-card--primary {
  border-left: 4px solid var(--ds-blue-60);
}

.ds-stat-card--success {
  border-left: 4px solid var(--ds-green-600);
}

.ds-stat-card--danger {
  border-left: 4px solid var(--ds-red-600);
}

.ds-stat-card--warning {
  border-left: 4px solid var(--ds-yellow-500);
}

/* ============================================================
   Grid de stats (helper)
   ============================================================ */
.ds-stats-grid {
  display: grid;
  gap: var(--ds-space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 640px) {
  .ds-stats-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ds-stats-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-stats-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* design-system/components/_admin-layout.scss
   ============================================================
   Admin Layout
   - estrutura base do painel administrativo
   - sidebar + header + main content
   ============================================================ */
/* ============================================================
   Page wrapper
   ============================================================ */
.ds-admin {
  min-height: 100vh;
  background: var(--ds-background);
}

/* ============================================================
   Main content area
   ============================================================ */
.ds-admin__main {
  margin-left: var(--ds-sidebar-width);
  margin-top: var(--ds-header-h);
  min-height: calc(100vh - var(--ds-header-h));
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando sidebar está colapsada */
.ds-sidebar.is-collapsed ~ .ds-admin__main,
body:has(.ds-sidebar.is-collapsed) .ds-admin__main {
  margin-left: var(--ds-sidebar-width-collapsed);
}

/* ============================================================
   Content container
   ============================================================ */
.ds-admin__content {
  padding: var(--ds-space-6);
  max-width: 1920px;
  margin: 0 auto;
}

/* ============================================================
   Page header (título + ações)
   ============================================================ */
.ds-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-6);
  flex-wrap: wrap;
}

.ds-page-header__left {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

.ds-page-header__title {
  font-size: 28px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  line-height: 1.2;
}

.ds-page-header__subtitle {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

.ds-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
}

/* ============================================================
   Section (blocos de conteúdo)
   ============================================================ */
.ds-section {
  margin-bottom: var(--ds-space-6);
}

.ds-section__header {
  margin-bottom: var(--ds-space-4);
}

.ds-section__title {
  font-size: 18px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  margin-bottom: var(--ds-space-2);
}

.ds-section__description {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
}

/* ============================================================
   Card genérico
   ============================================================ */
.ds-card {
  background: var(--ds-layer-01);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-3);
  padding: var(--ds-space-5);
}

.ds-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ds-space-4);
}

.ds-card__title {
  font-size: 16px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
}

.ds-card__body {
  /* conteúdo interno */
}

.ds-card__footer {
  margin-top: var(--ds-space-4);
  padding-top: var(--ds-space-4);
  border-top: 1px solid var(--ds-border-subtle);
}

/* ============================================================
   Empty state
   ============================================================ */
.ds-empty {
  text-align: center;
  padding: var(--ds-space-8) var(--ds-space-6);
}

.ds-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--ds-space-4);
  color: var(--ds-text-secondary);
  opacity: 0.5;
}

.ds-empty__title {
  font-size: 18px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  margin-bottom: var(--ds-space-2);
}

.ds-empty__description {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-4);
}

.ds-empty__actions {
  display: flex;
  justify-content: center;
  gap: var(--ds-space-3);
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 768px) {
  .ds-admin__main {
    margin-left: 0;
  }
  .ds-admin__content {
    padding: var(--ds-space-4);
  }
  .ds-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ds-page-header__title {
    font-size: 24px;
  }
  .ds-page-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .ds-admin__content {
    padding: var(--ds-space-3);
  }
  .ds-card {
    padding: var(--ds-space-4);
  }
}
/* design-system/components/_search-box.scss
   ============================================================
   Search Box / Filter Box (Carbon-ish)
   - busca inline para hero sections
   - filtros de operação, tipo, cidade
   - botão de busca destacado
   ============================================================ */
:root {
  --ds-search-box-bg: var(--ds-layer-01);
  --ds-search-box-border: var(--ds-border-subtle);
  --ds-search-box-radius: var(--ds-radius-3);
  --ds-search-box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  --ds-search-box-padding: var(--ds-space-4);
  --ds-search-box-gap: var(--ds-space-3);
  --ds-search-tab-active: var(--ds-blue-60);
  --ds-search-tab-bg: var(--ds-gray-100);
}

/* ============================================================
   Search Box Container
   ============================================================ */
.ds-search-box {
  background: var(--ds-search-box-bg);
  border: 1px solid var(--ds-search-box-border);
  border-radius: var(--ds-search-box-radius);
  box-shadow: var(--ds-search-box-shadow);
  padding: var(--ds-search-box-padding);
  display: flex;
  flex-direction: column;
  gap: var(--ds-search-box-gap);
}

/* Com tabs no topo */
.ds-search-box--with-tabs {
  padding: 0;
}

/* ============================================================
   Search Tabs (Alugar/Comprar)
   ============================================================ */
.ds-search-tabs {
  display: flex;
  background: var(--ds-search-tab-bg);
  border-radius: var(--ds-search-box-radius) var(--ds-search-box-radius) 0 0;
  padding: var(--ds-space-2);
  gap: var(--ds-space-2);
}

.ds-search-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
}

.ds-search-tab:hover {
  background: color-mix(in srgb, var(--ds-gray-200) 50%, transparent);
  color: var(--ds-text-primary);
}

.ds-search-tab.is-active {
  background: var(--ds-layer-01);
  color: var(--ds-search-tab-active);
  box-shadow: var(--ds-shadow-sm);
}

.ds-search-tab__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   Search Fields
   ============================================================ */
.ds-search-fields {
  display: grid;
  gap: var(--ds-search-box-gap);
  padding: var(--ds-search-box-padding);
}

/* Grid responsivo */
@media (min-width: 640px) {
  .ds-search-fields--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .ds-search-fields--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-search-fields--4 {
    grid-template-columns: repeat(3, 1fr) auto;
  }
}
@media (min-width: 1024px) {
  .ds-search-fields--4 {
    grid-template-columns: repeat(4, 1fr) auto;
  }
}
/* ============================================================
   Search Field
   ============================================================ */
.ds-search-field {
  position: relative;
  min-width: 0;
}

.ds-search-field__label {
  display: block;
  font-size: 11px;
  font-weight: var(--ds-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-2);
}

.ds-search-field__select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 var(--ds-space-3);
  background: var(--ds-layer-01);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-primary);
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-search-field__select:hover {
  border-color: color-mix(in srgb, var(--ds-border-subtle) 60%, var(--ds-text-primary));
}

.ds-search-field__select:focus {
  outline: none;
  border-color: var(--ds-blue-60);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-blue-60) 20%, transparent);
}

/* Placeholder */
.ds-search-field__select option:first-child {
  color: var(--ds-text-secondary);
}

/* Chevron icon */
.ds-search-field__icon {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  color: var(--ds-text-secondary);
  pointer-events: none;
}

/* ============================================================
   Search Button
   ============================================================ */
.ds-search-btn {
  background: var(--ds-blue-60);
  color: #fff;
  border: 0;
  border-radius: var(--ds-radius-2);
  padding: 0 var(--ds-space-5);
  height: 44px;
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.ds-search-btn:hover {
  background: var(--ds-blue-70);
}

.ds-search-btn:active {
  transform: scale(0.98);
}

.ds-search-btn__icon {
  width: 18px;
  height: 18px;
}

/* Full width em mobile */
@media (max-width: 767px) {
  .ds-search-btn {
    width: 100%;
    margin-top: var(--ds-space-2);
  }
}
/* Alinhado com os fields */
.ds-search-btn--inline {
  align-self: end;
}

/* ============================================================
   Search Box Hero (versão grande para banners)
   ============================================================ */
.ds-search-box--hero {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.18);
}

.ds-search-box--hero .ds-search-field__label {
  font-size: 12px;
}

.ds-search-box--hero .ds-search-field__select,
.ds-search-box--hero .ds-search-btn {
  height: 52px;
  font-size: var(--ds-body-md-size);
}

/* ============================================================
   Search Box Compact (versão menor para páginas internas)
   ============================================================ */
.ds-search-box--compact {
  padding: var(--ds-space-3);
}

.ds-search-box--compact .ds-search-fields {
  padding: var(--ds-space-3);
}

.ds-search-box--compact .ds-search-field__label {
  font-size: 10px;
  margin-bottom: var(--ds-space-1);
}

.ds-search-box--compact .ds-search-field__select,
.ds-search-box--compact .ds-search-btn {
  height: 38px;
  font-size: 13px;
}

.ds-search-box--compact .ds-search-tab {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-size: 13px;
}

/* public site components */
/* design-system/components/_hero.scss
   ============================================================
   Hero Section (Carbon-ish)
   - hero com background image
   - header transparente integrado
   - search box sobreposto
   ============================================================ */
:root {
  --ds-hero-min-height: 85vh;
  --ds-hero-overlay: linear-gradient(135deg, rgba(15, 98, 254, 0.85) 0%, rgba(0, 67, 206, 0.75) 100%);
  --ds-hero-bg-opacity: 0.3;
}

/* ============================================================
   Hero Container
   ============================================================ */
.ds-hero {
  position: relative;
  min-height: var(--ds-hero-min-height);
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f62fe 0%, #0043ce 100%);
  overflow: hidden;
}

/* ============================================================
   Background Image
   ============================================================ */
.ds-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.ds-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ds-hero-overlay);
  z-index: 1;
}

.ds-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--ds-hero-bg-opacity);
}

/* ============================================================
   Hero Header (transparente)
   ============================================================ */
.ds-hero__header {
  position: relative;
  z-index: 100;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-hero__header-inner {
  max-width: 1584px;
  margin: 0 auto;
  padding: 0 var(--ds-space-4);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
}

.ds-hero__logo {
  height: 45px;
}

/* Navigation */
.ds-hero__nav {
  display: none;
  gap: var(--ds-space-6);
}

.ds-hero__nav-link {
  color: white;
  text-decoration: none;
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.ds-hero__nav-link:hover,
.ds-hero__nav-link.is-active {
  opacity: 1;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .ds-hero__nav {
    display: flex;
  }
}
/* Actions */
.ds-hero__actions {
  display: flex;
  gap: var(--ds-space-2);
  align-items: center;
}

.ds-hero__btn-portal {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px var(--ds-space-4);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border-radius: var(--ds-radius-2);
  font-size: 13px;
  font-weight: var(--ds-font-weight-medium);
  transition: background 0.2s ease;
}

.ds-hero__btn-portal:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ds-hero__btn-login {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease;
}

.ds-hero__btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ds-hero__btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
}

@media (min-width: 768px) {
  .ds-hero__btn-portal {
    display: inline-flex;
  }
  .ds-hero__btn-login {
    display: none;
  }
  .ds-hero__btn-menu {
    display: none;
  }
}
/* ============================================================
   Hero Content
   ============================================================ */
.ds-hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--ds-space-4) 40px;
  text-align: center;
}

.ds-hero__content-inner {
  max-width: 800px;
}

.ds-hero__eyebrow {
  display: inline-block;
  padding: 6px var(--ds-space-4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: white;
  font-size: 13px;
  font-weight: var(--ds-font-weight-semibold);
  margin-bottom: var(--ds-space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-hero__title {
  font-size: 48px;
  font-weight: var(--ds-font-weight-bold);
  color: white;
  margin: 0 0 var(--ds-space-4);
  line-height: 1.1;
}

.ds-hero__title strong {
  color: #a6c8ff;
}

.ds-hero__description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ds-hero__title {
    font-size: 32px;
  }
  .ds-hero__description {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .ds-hero__title {
    font-size: 56px;
  }
}
/* ============================================================
   Hero Search Wrapper
   ============================================================ */
.ds-hero__search {
  position: relative;
  z-index: 20;
  padding: 0 var(--ds-space-4) 40px;
  margin-top: -20px;
}

.ds-hero__search-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   Hero Variants
   ============================================================ */
/* Compact hero (menor) */
.ds-hero--compact {
  min-height: 60vh;
}

/* Hero sem search */
.ds-hero--no-search .ds-hero__content {
  padding-bottom: 60px;
}

/* Hero com imagem fixa (parallax) */
.ds-hero--fixed .ds-hero__bg img {
  position: fixed;
}

/* design-system/components/_footer.scss
   ============================================================
   Footer (Carbon-ish)
   - footer público do site
   - grid responsivo com colunas
   - links e informações de contato
   ============================================================ */
:root {
  --ds-footer-bg: var(--ds-gray-900);
  --ds-footer-text: white;
  --ds-footer-text-secondary: rgba(255, 255, 255, 0.7);
  --ds-footer-border: rgba(255, 255, 255, 0.1);
  --ds-footer-padding-top: 60px;
  --ds-footer-padding-bottom: 24px;
}

/* ============================================================
   Footer Container
   ============================================================ */
.ds-footer {
  background: var(--ds-footer-bg);
  color: var(--ds-footer-text);
  padding: var(--ds-footer-padding-top) 0 var(--ds-footer-padding-bottom);
}

/* ============================================================
   Footer Grid
   ============================================================ */
.ds-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--ds-space-7);
  margin-bottom: var(--ds-space-7);
}

@media (max-width: 768px) {
  .ds-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--ds-space-6);
  }
}
/* ============================================================
   Footer Column
   ============================================================ */
.ds-footer__col {
  /* Column base */
}

.ds-footer__col h4 {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  margin-bottom: var(--ds-space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-footer__col li {
  margin-bottom: var(--ds-space-3);
}

.ds-footer__col a {
  color: var(--ds-footer-text-secondary);
  text-decoration: none;
  font-size: var(--ds-body-sm-size);
  transition: color 0.2s ease;
}

.ds-footer__col a:hover {
  color: var(--ds-footer-text);
  text-decoration: underline;
}

/* ============================================================
   Brand Column
   ============================================================ */
.ds-footer__brand {
  /* Brand specific styles */
}

.ds-footer__logo {
  height: 45px;
  margin-bottom: var(--ds-space-4);
}

.ds-footer__description {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-footer-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--ds-space-4);
}

/* ============================================================
   Contact Info
   ============================================================ */
.ds-footer__contact {
  /* Contact wrapper */
}

.ds-footer__contact-item {
  display: flex;
  gap: var(--ds-space-3);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-footer-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--ds-space-3);
}

.ds-footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* WhatsApp Button */
.ds-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  width: 100%;
  padding: var(--ds-space-3) var(--ds-space-4);
  background: var(--ds-blue-60);
  color: white;
  text-decoration: none;
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  justify-content: center;
  transition: background 0.2s ease;
}

.ds-footer__whatsapp:hover {
  background: var(--ds-blue-70);
}

.ds-footer__whatsapp svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Social Links
   ============================================================ */
.ds-footer__social {
  display: flex;
  gap: var(--ds-space-2);
}

.ds-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-footer-text);
  transition: background 0.2s ease;
}

.ds-footer__social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ds-footer__social svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Footer Bottom (Copyright)
   ============================================================ */
.ds-footer__bottom {
  border-top: 1px solid var(--ds-footer-border);
  padding-top: var(--ds-space-4);
  margin-top: var(--ds-space-7);
  text-align: center;
}

.ds-footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.ds-footer__bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.ds-footer__bottom a:hover {
  color: white;
}

/* ============================================================
   Footer Variants
   ============================================================ */
/* Compact footer */
.ds-footer--compact {
  padding: 40px 0 20px;
}

.ds-footer--compact .ds-footer__grid {
  margin-bottom: var(--ds-space-5);
  gap: var(--ds-space-5);
}

/* design-system/components/_carousel.scss
   ============================================================
   Carousel Component (Carbon-ish)
   - carrossel de cards responsivo
   - controles IBM Carbon style
   - funciona com .ds-property-card
   ============================================================ */
/* ============================================================
   Carousel Header
   ============================================================ */
.ds-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--ds-space-4);
}

/* ============================================================
   Carousel Controls (Botões)
   ============================================================ */
.ds-carousel-controls {
  display: flex;
  gap: 1px;
  background: var(--ds-border-subtle);
  border: 1px solid var(--ds-border-subtle);
}

.ds-carousel-btn {
  background: var(--ds-layer-01);
  color: var(--ds-text-primary);
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
}

.ds-carousel-btn:hover:not(:disabled) {
  background: var(--ds-blue-60);
  color: var(--ds-blue-10);
}

.ds-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  color: var(--ds-text-disabled);
}

.ds-carousel-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Carousel Viewport (janela que esconde overflow)
   ============================================================ */
.ds-carousel-viewport {
  overflow: hidden;
  width: 100%;
  /* Padding para evitar corte de sombra dos cards */
  padding: 2px 0;
  margin: -2px 0;
}

/* ============================================================
   Carousel Track (trilho que desliza)
   ============================================================ */
.ds-carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--ds-space-4);
  padding: 0;
  margin: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ============================================================
   Responsividade dos Cards no Carousel
   ============================================================ */
/* Mobile: 1 Card */
.ds-carousel-track .ds-property-card {
  flex: 0 0 100%;
  min-width: 0;
}

/* Tablet: 2 Cards */
@media (min-width: 672px) {
  .ds-carousel-track .ds-property-card {
    flex: 0 0 calc(50% - 8px);
  }
}
/* Desktop: 3 Cards */
@media (min-width: 1056px) {
  .ds-carousel-track .ds-property-card {
    flex: 0 0 calc(33.333% - 10.67px);
  }
}
/* Desktop Amplo: 4 Cards */
@media (min-width: 1312px) {
  .ds-carousel-track .ds-property-card {
    flex: 0 0 calc(25% - 12px);
  }
}
/* ============================================================
   Variante Compact
   ============================================================ */
.ds-carousel--compact .ds-carousel-btn {
  width: 40px;
  height: 40px;
}

.ds-carousel--compact .ds-carousel-header {
  margin-bottom: var(--ds-space-3);
}

/* design-system/components/_site-header.scss
   ============================================================
   Site Header - Header para páginas internas (não hero)
   - fundo sólido (branco)
   - sticky opcional
   - mesmo layout que hero header mas com cores diferentes
   ============================================================ */
:root {
  --ds-site-header-bg: var(--ds-layer-01);
  --ds-site-header-border: var(--ds-border-subtle);
  --ds-site-header-height: 72px;
}

/* ============================================================
   Site Header Container
   ============================================================ */
.ds-site-header {
  position: relative;
  z-index: 100;
  background: var(--ds-site-header-bg);
  border-bottom: 1px solid var(--ds-site-header-border);
  box-shadow: var(--ds-shadow-sm);
}

/* Sticky variant */
.ds-site-header--sticky {
  position: sticky;
  top: 0;
}

.ds-site-header__inner {
  max-width: 1584px;
  margin: 0 auto;
  padding: 0 var(--ds-space-4);
  height: var(--ds-site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
}

/* Logo */
.ds-site-header__logo {
  height: 36px;
}

/* Navigation */
.ds-site-header__nav {
  display: none;
  gap: var(--ds-space-6);
}

.ds-site-header__nav-link {
  color: var(--ds-text-secondary);
  text-decoration: none;
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  transition: color 0.2s ease;
}

.ds-site-header__nav-link:hover,
.ds-site-header__nav-link.is-active {
  color: var(--ds-text-primary);
}

.ds-site-header__nav-link.is-active {
  font-weight: var(--ds-font-weight-semibold);
}

@media (min-width: 768px) {
  .ds-site-header__nav {
    display: flex;
  }
}
/* Actions */
.ds-site-header__actions {
  display: flex;
  gap: var(--ds-space-2);
  align-items: center;
}

.ds-site-header__btn-portal {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px var(--ds-space-4);
  background: var(--ds-layer-02);
  color: var(--ds-text-primary);
  text-decoration: none;
  border-radius: var(--ds-radius-2);
  border: 1px solid var(--ds-border-subtle);
  font-size: 13px;
  font-weight: var(--ds-font-weight-medium);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ds-site-header__btn-portal:hover {
  background: var(--ds-layer-hover-02);
  border-color: var(--ds-border-strong);
}

.ds-site-header__btn-login {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ds-layer-02);
  border: 1px solid var(--ds-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-text-primary);
  transition: background 0.2s ease;
}

.ds-site-header__btn-login:hover {
  background: var(--ds-layer-hover-02);
}

.ds-site-header__btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--ds-text-primary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .ds-site-header__btn-portal {
    display: inline-flex;
  }
  .ds-site-header__btn-login {
    display: none;
  }
  .ds-site-header__btn-menu {
    display: none;
  }
}
/* design-system/components/_page-header-internal.scss
   ============================================================
   Page Header Internal - Header para páginas de listagem
   - breadcrumb navegacional
   - título da página
   - contador de resultados
   - área para filtros
   ============================================================ */
:root {
  --ds-page-header-internal-bg: var(--ds-layer-01);
  --ds-page-header-internal-border: var(--ds-border-subtle);
  --ds-page-header-internal-padding-y: var(--ds-space-7);
}

/* ============================================================
   Container
   ============================================================ */
.ds-page-header-internal {
  background: var(--ds-page-header-internal-bg);
  border-bottom: 1px solid var(--ds-page-header-internal-border);
  padding: var(--ds-page-header-internal-padding-y) 0;
}

/* Usa ds-container para alinhamento consistente */
.ds-page-header-internal > .ds-container {
  /* Container já tem max-width e padding definidos */
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.ds-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-4);
}

.ds-breadcrumb a {
  color: var(--ds-interactive-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-breadcrumb a:hover {
  color: var(--ds-interactive-primary-hover);
  text-decoration: underline;
}

.ds-breadcrumb svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ds-breadcrumb span:last-child {
  color: var(--ds-text-primary);
  font-weight: var(--ds-font-weight-medium);
}

/* ============================================================
   Title
   ============================================================ */
.ds-page-header-internal__title {
  font-size: var(--ds-heading-lg-size);
  font-weight: var(--ds-heading-lg-weight);
  line-height: var(--ds-line-height-heading);
  letter-spacing: var(--ds-letter-spacing-heading);
  color: var(--ds-text-primary);
  margin: 0 0 var(--ds-space-3);
}

.ds-page-header-internal__title span {
  color: var(--ds-interactive-primary);
}

/* ============================================================
   Count (contador de resultados)
   ============================================================ */
.ds-page-header-internal__count {
  font-size: var(--ds-body-md-size);
  color: var(--ds-text-secondary);
  margin: 0 0 var(--ds-space-5);
}

.ds-page-header-internal__count strong {
  color: var(--ds-text-primary);
  font-weight: var(--ds-font-weight-semibold);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .ds-page-header-internal__title {
    font-size: var(--ds-heading-md-size);
  }
  .ds-page-header-internal {
    padding: var(--ds-space-5) 0;
  }
}
/* design-system/components/_filters.scss
   ============================================================
   Filters Component
   - filtros principais (grid horizontal)
   - filtros avançados (accordion/details)
   - active filter tags (pills removíveis)
   - results header
   ============================================================ */
:root {
  --ds-filters-gap: var(--ds-space-4);
  --ds-filters-field-height: 48px;
}

/* ============================================================
   Main Filters (grid horizontal)
   ============================================================ */
.ds-filters-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ds-filters-gap);
  align-items: end;
}

@media (min-width: 1024px) {
  .ds-filters-main {
    grid-template-columns: repeat(4, 1fr) auto;
  }
}
/* ============================================================
   Field
   ============================================================ */
.ds-filter-field {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

.ds-filter-field label {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-secondary);
}

.ds-filter-field select,
.ds-filter-field input {
  height: var(--ds-filters-field-height);
  padding: 0 var(--ds-space-4);
  background: var(--ds-layer-01);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  color: var(--ds-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-filter-field select:hover,
.ds-filter-field input:hover {
  border-color: var(--ds-border-strong);
}

.ds-filter-field select:focus,
.ds-filter-field input:focus {
  outline: none;
  border-color: var(--ds-interactive-primary);
  box-shadow: var(--ds-focus-ring);
}

.ds-filter-field select:disabled,
.ds-filter-field input:disabled {
  background: var(--ds-layer-disabled);
  color: var(--ds-text-disabled);
  cursor: not-allowed;
}

/* ============================================================
   Search Button (inline no grid)
   ============================================================ */
.ds-filter-btn-search {
  height: var(--ds-filters-field-height);
  padding: 0 var(--ds-space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  background: var(--ds-interactive-primary);
  color: white;
  border: none;
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.ds-filter-btn-search:hover {
  background: var(--ds-interactive-primary-hover);
}

.ds-filter-btn-search svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Advanced Filters (details/summary accordion)
   ============================================================ */
.ds-filters-advanced {
  margin-top: var(--ds-space-5);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-3);
  background: var(--ds-layer-01);
}

.ds-filters-advanced summary {
  padding: var(--ds-space-4);
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ds-filters-advanced summary::-webkit-details-marker {
  display: none;
}

.ds-filters-advanced summary svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ds-text-secondary);
}

.ds-filters-advanced summary .ds-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ds-text-secondary);
  transition: transform 0.2s ease;
}

.ds-filters-advanced[open] summary .ds-chevron {
  transform: rotate(180deg);
}

.ds-filters-advanced__badge {
  padding: 4px 8px;
  background: var(--ds-blue-10);
  color: var(--ds-blue-60);
  border-radius: var(--ds-radius-pill);
  font-size: 11px;
  font-weight: var(--ds-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-filters-advanced__body {
  padding: 0 var(--ds-space-4) var(--ds-space-4);
  border-top: 1px solid var(--ds-border-subtle);
}

/* Grid de campos avançados */
.ds-filters-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--ds-space-4);
  margin-top: var(--ds-space-4);
}

@media (max-width: 768px) {
  .ds-filters-grid {
    grid-template-columns: 1fr;
  }
  .ds-filters-grid > * {
    grid-column: span 1 !important;
  }
}
.ds-filters-grid .ds-filter-field {
  grid-column: span 3;
}

/* Actions */
.ds-filters-actions {
  display: flex;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-4);
  flex-wrap: wrap;
}

.ds-filter-btn-apply {
  padding: var(--ds-space-3) var(--ds-space-5);
  background: var(--ds-interactive-primary);
  color: white;
  border: none;
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ds-filter-btn-apply:hover {
  background: var(--ds-interactive-primary-hover);
}

.ds-filter-btn-clear {
  padding: var(--ds-space-3) var(--ds-space-4);
  background: transparent;
  color: var(--ds-text-secondary);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ds-filter-btn-clear:hover {
  background: var(--ds-layer-hover-01);
  color: var(--ds-text-primary);
  border-color: var(--ds-border-strong);
}

/* ============================================================
   Active Filter Tags
   ============================================================ */
.ds-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-5);
}

.ds-active-filters__label {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-secondary);
}

.ds-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: 6px var(--ds-space-3);
  background: var(--ds-layer-02);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
}

.ds-filter-tag a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-layer-hover-02);
  color: var(--ds-text-secondary);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
}

.ds-filter-tag a:hover {
  background: var(--ds-layer-03);
  color: var(--ds-text-primary);
}

/* ============================================================
   Results Header
   ============================================================ */
.ds-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-5);
  padding-bottom: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.ds-results-header__info {
  font-size: var(--ds-body-md-size);
  color: var(--ds-text-secondary);
  margin: 0;
}

.ds-results-header__info strong {
  color: var(--ds-text-primary);
  font-weight: var(--ds-font-weight-semibold);
}

@media (max-width: 640px) {
  .ds-results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* design-system/components/_mobile-menu.scss
   ============================================================
   Mobile Menu (Slide from Right)
   - menu fullscreen slide da direita
   - overlay com backdrop
   - animação suave
   ============================================================ */
:root {
  --ds-mobile-menu-width: 320px;
  --ds-mobile-menu-bg: white;
  --ds-mobile-menu-overlay: rgba(0, 0, 0, 0.5);
  --ds-mobile-menu-duration: 0.3s;
}

/* ============================================================
   Overlay (backdrop escuro)
   ============================================================ */
.ds-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--ds-mobile-menu-overlay);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ds-mobile-menu-duration) ease, visibility var(--ds-mobile-menu-duration) ease;
  z-index: 999;
}

.ds-mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Menu Container (slide da direita)
   ============================================================ */
.ds-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--ds-mobile-menu-width);
  max-width: 100vw;
  background: var(--ds-mobile-menu-bg);
  box-shadow: var(--ds-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--ds-mobile-menu-duration) cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.ds-mobile-menu.is-open {
  transform: translateX(0);
}

/* ============================================================
   Header
   ============================================================ */
.ds-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border-subtle);
  flex-shrink: 0;
}

.ds-mobile-menu__title {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.ds-mobile-menu__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--ds-radius-2);
  color: var(--ds-text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ds-mobile-menu__close:hover {
  background: var(--ds-layer-hover-01);
}

.ds-mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   Navigation
   ============================================================ */
.ds-mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--ds-space-2) 0;
}

.ds-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-space-4);
  color: var(--ds-text-primary);
  text-decoration: none;
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-medium);
  border-bottom: 1px solid var(--ds-border-subtle);
  transition: background 0.2s ease;
}

.ds-mobile-menu__link:hover,
.ds-mobile-menu__link.is-active {
  background: var(--ds-layer-hover-01);
}

.ds-mobile-menu__link.is-active {
  color: var(--ds-interactive-primary);
  font-weight: var(--ds-font-weight-semibold);
}

.ds-mobile-menu__link svg {
  width: 16px;
  height: 16px;
  color: var(--ds-text-secondary);
  flex-shrink: 0;
}

/* ============================================================
   Footer (opcional - para botões de ação)
   ============================================================ */
.ds-mobile-menu__footer {
  padding: var(--ds-space-4);
  border-top: 1px solid var(--ds-border-subtle);
  flex-shrink: 0;
}

.ds-mobile-menu__footer .ds-btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Prevent body scroll when menu is open
   ============================================================ */
body.ds-mobile-menu-open {
  overflow: hidden;
}

/* ============================================================
   Responsive - esconde em desktop
   ============================================================ */
@media (min-width: 768px) {
  .ds-mobile-menu,
  .ds-mobile-menu-overlay {
    display: none;
  }
}
/* design-system/components/_property-detail.scss
   ============================================================
   Property Detail Page Components
   - Hero com galeria
   - Info pills
   - Boxes de conteúdo
   - Galeria navegável
   - Lead form card
   - Consent toggle
   ============================================================ */
:root {
  --ds-property-detail-gap: var(--ds-space-6);
}

/* ============================================================
   Property Hero (com imagem de fundo)
   ============================================================ */
.ds-property-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  background: var(--ds-layer-01);
  overflow: hidden;
}

.ds-property-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.ds-property-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.ds-property-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--ds-space-6) 0 var(--ds-space-5);
}

.ds-property-hero__content-inner {
  max-width: var(--ds-container-max);
  margin: 0 auto;
  padding: 0 var(--ds-space-4);
  width: 100%;
}

/* Breadcrumb no hero */
.ds-property-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  font-size: var(--ds-body-sm-size);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--ds-space-4);
}

.ds-property-hero__breadcrumb a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ds-property-hero__breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ds-property-hero__breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Título */
.ds-property-hero__title {
  font-size: var(--ds-heading-xl-size);
  font-weight: var(--ds-heading-xl-weight);
  line-height: var(--ds-line-height-heading);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0 0 var(--ds-space-4);
}

/* Pills de informação */
.ds-property-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
}

.ds-property-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--ds-radius-pill);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  backdrop-filter: blur(8px);
}

.ds-property-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--ds-text-secondary);
}

.ds-property-pill strong {
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-interactive-primary);
}

.ds-property-pill__sep {
  color: var(--ds-border-subtle);
  margin: 0 2px;
}

/* ============================================================
   Property Layout (grid 2 colunas)
   ============================================================ */
.ds-property-layout {
  max-width: var(--ds-container-max);
  margin: 0 auto;
  padding: var(--ds-property-detail-gap) var(--ds-space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-property-detail-gap);
}

@media (min-width: 1024px) {
  .ds-property-layout {
    grid-template-columns: 1fr 380px;
  }
}
/* ============================================================
   Property Box (caixas de conteúdo)
   ============================================================ */
.ds-property-box {
  background: var(--ds-layer-01);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-3);
  overflow: hidden;
  margin-bottom: var(--ds-space-4);
}

.ds-property-box__header {
  padding: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.ds-property-box__title {
  font-size: var(--ds-heading-sm-size);
  font-weight: var(--ds-heading-sm-weight);
  color: var(--ds-text-primary);
  margin: 0 0 var(--ds-space-1);
}

.ds-property-box__subtitle {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  margin: 0;
}

.ds-property-box__subtitle svg {
  width: 14px;
  height: 14px;
}

.ds-property-box__body {
  padding: var(--ds-space-4);
}

/* ============================================================
   Gallery (galeria de fotos)
   ============================================================ */
.ds-property-gallery {
  position: relative;
}

.ds-property-gallery__main {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ds-layer-02);
  overflow: hidden;
  border-radius: var(--ds-radius-3);
}

.ds-property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges na galeria */
.ds-property-gallery__badges {
  position: absolute;
  top: var(--ds-space-3);
  left: var(--ds-space-3);
  display: flex;
  gap: var(--ds-space-2);
  z-index: 2;
}

.ds-property-gallery__badge {
  padding: var(--ds-space-2) var(--ds-space-3);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  backdrop-filter: blur(8px);
}

.ds-property-gallery__badge--sale {
  background: var(--ds-interactive-primary);
  color: white;
}

.ds-property-gallery__badge--rent {
  background: var(--ds-support-warning);
  color: white;
}

/* Counter */
.ds-property-gallery__counter {
  position: absolute;
  bottom: var(--ds-space-3);
  right: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--ds-radius-2);
  color: white;
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Botões de navegação */
.ds-property-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--ds-radius-2);
  color: var(--ds-text-primary);
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
  z-index: 2;
}

.ds-property-gallery__nav:hover {
  background: white;
}

.ds-property-gallery__nav--prev {
  left: var(--ds-space-3);
}

.ds-property-gallery__nav--next {
  right: var(--ds-space-3);
}

/* Thumbnails */
.ds-property-gallery__thumbs {
  display: flex;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-3);
  overflow-x: auto;
  padding-bottom: var(--ds-space-2);
}

.ds-property-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--ds-radius-2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ds-property-gallery__thumb:hover {
  border-color: var(--ds-border-interactive);
}

.ds-property-gallery__thumb.is-active {
  border-color: var(--ds-interactive-primary);
}

.ds-property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Info List (características)
   ============================================================ */
.ds-property-info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ds-space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.ds-property-info-item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  background: var(--ds-layer-02);
  border-radius: var(--ds-radius-2);
}

.ds-property-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--ds-interactive-primary);
  flex-shrink: 0;
}

.ds-property-info-item span {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  font-weight: var(--ds-font-weight-medium);
}

/* ============================================================
   Description (descrição do imóvel)
   ============================================================ */
.ds-property-description p {
  font-size: var(--ds-body-md-size);
  line-height: var(--ds-line-height-body);
  color: var(--ds-text-secondary);
  margin: 0 0 var(--ds-space-4);
}

.ds-property-description p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Lead Form Card (formulário de contato)
   ============================================================ */
.ds-lead-card {
  position: sticky;
  top: var(--ds-space-4);
}

.ds-lead-card__price {
  padding: var(--ds-space-4);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.ds-lead-card__price-label {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin: 0 0 var(--ds-space-2);
}

.ds-lead-card__price-value {
  font-size: var(--ds-heading-lg-size);
  font-weight: var(--ds-heading-lg-weight);
  color: var(--ds-interactive-primary);
  margin: 0;
}

.ds-lead-card__form {
  padding: var(--ds-space-4);
}

.ds-lead-card__form-title {
  margin-bottom: var(--ds-space-4);
}

.ds-lead-card__form-title h3 {
  font-size: var(--ds-heading-sm-size);
  font-weight: var(--ds-heading-sm-weight);
  color: var(--ds-text-primary);
  margin: 0 0 var(--ds-space-1);
}

.ds-lead-card__form-title p {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin: 0;
}

/* Form fields */
.ds-lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  margin-bottom: var(--ds-space-4);
}

.ds-lead-form__field {
  width: 100%;
  padding: var(--ds-space-3);
  background: var(--ds-field-bg);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-family);
  transition: border-color 0.2s ease;
}

.ds-lead-form__field:focus {
  outline: none;
  border-color: var(--ds-interactive-primary);
  box-shadow: var(--ds-focus-ring);
}

.ds-lead-form__field::placeholder {
  color: var(--ds-text-placeholder);
}

.ds-lead-form__textarea {
  resize: vertical;
  min-height: 80px;
}

/* Consent Toggle */
.ds-consent {
  padding: var(--ds-space-3);
  background: var(--ds-layer-02);
  border-radius: var(--ds-radius-2);
  margin-bottom: var(--ds-space-4);
}

.ds-consent__text {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-2);
}

.ds-consent__text a {
  color: var(--ds-interactive-primary);
  text-decoration: none;
}

.ds-consent__text a:hover {
  text-decoration: underline;
}

.ds-consent__toggle {
  display: flex;
  gap: var(--ds-space-2);
}

.ds-consent__btn {
  flex: 1;
  padding: var(--ds-space-2) var(--ds-space-3);
  background: var(--ds-layer-01);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ds-consent__btn:hover {
  background: var(--ds-layer-hover-01);
}

.ds-consent__btn.is-active {
  background: var(--ds-interactive-primary);
  border-color: var(--ds-interactive-primary);
  color: white;
}

/* Submit button */
.ds-lead-form__submit {
  width: 100%;
  padding: var(--ds-space-3);
  background: var(--ds-interactive-primary);
  border: none;
  border-radius: var(--ds-radius-2);
  color: white;
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
}

.ds-lead-form__submit:hover {
  background: var(--ds-interactive-primary-hover);
}

.ds-lead-form__submit:disabled {
  background: var(--ds-border-subtle);
  cursor: not-allowed;
}

.ds-lead-form__submit svg {
  width: 16px;
  height: 16px;
}

/* Message */
.ds-lead-form__message {
  font-size: var(--ds-body-sm-size);
  padding: var(--ds-space-2);
  border-radius: var(--ds-radius-2);
  margin-top: var(--ds-space-3);
  display: none;
}

.ds-lead-form__message.is-visible {
  display: block;
}

.ds-lead-form__message.is-success {
  background: var(--ds-support-success-bg);
  color: var(--ds-support-success);
}

.ds-lead-form__message.is-error {
  background: var(--ds-support-error-bg);
  color: var(--ds-support-error);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .ds-property-hero__title {
    font-size: var(--ds-heading-lg-size);
  }
  .ds-property-layout {
    padding: var(--ds-space-4);
  }
  .ds-lead-card {
    position: static;
  }
}
/* design-system/components/_cta-banner.scss
   ============================================================
   CTA Banner - Call-to-Action para anunciar imóveis
   - Banner destacado com gradient
   - Modal de anúncio
   ============================================================ */
:root {
  --ds-cta-banner-gradient-start: #0F62FE;
  --ds-cta-banner-gradient-end: #0043CE;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.ds-cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--ds-cta-banner-gradient-start) 0%, var(--ds-cta-banner-gradient-end) 100%);
  border-radius: var(--ds-radius-3);
  padding: var(--ds-space-6) var(--ds-space-5);
  overflow: hidden;
  margin-bottom: var(--ds-space-6);
}

/* Pattern overlay (opcional, decorativo) */
.ds-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.ds-cta-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-5);
  max-width: var(--ds-container-max-width);
  margin: 0 auto;
}

/* Text area */
.ds-cta-banner__text {
  flex: 1;
}

.ds-cta-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--ds-radius-2);
  color: white;
  margin-bottom: var(--ds-space-3);
}

.ds-cta-banner__icon svg {
  width: 24px;
  height: 24px;
}

.ds-cta-banner__title {
  font-size: var(--ds-heading-md-size);
  font-weight: var(--ds-heading-md-weight);
  line-height: var(--ds-line-height-heading);
  color: white;
  margin: 0 0 var(--ds-space-2);
}

.ds-cta-banner__description {
  font-size: var(--ds-body-md-size);
  line-height: var(--ds-line-height-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Action area */
.ds-cta-banner__action {
  flex-shrink: 0;
}

.ds-cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-5);
  background: white;
  border: none;
  border-radius: var(--ds-radius-2);
  color: var(--ds-interactive-primary);
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  font-family: var(--ds-font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ds-cta-banner__btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ds-cta-banner__btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Anuncio Modal
   ============================================================ */
.ds-anuncio-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.ds-anuncio-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Overlay */
.ds-anuncio-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

/* Container */
.ds-anuncio-modal__container {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--ds-layer-01);
  border-radius: var(--ds-radius-3);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.ds-anuncio-modal.is-open .ds-anuncio-modal__container {
  transform: scale(1);
}

/* Header */
.ds-anuncio-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ds-space-5);
  background: linear-gradient(135deg, var(--ds-cta-banner-gradient-start) 0%, var(--ds-cta-banner-gradient-end) 100%);
  color: white;
}

.ds-anuncio-modal__title-area {
  flex: 1;
}

.ds-anuncio-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--ds-radius-2);
  margin-bottom: var(--ds-space-2);
}

.ds-anuncio-modal__icon svg {
  width: 20px;
  height: 20px;
}

.ds-anuncio-modal__title {
  font-size: var(--ds-heading-sm-size);
  font-weight: var(--ds-heading-sm-weight);
  margin: 0 0 var(--ds-space-1);
}

.ds-anuncio-modal__subtitle {
  font-size: var(--ds-body-sm-size);
  opacity: 0.9;
  margin: 0;
}

.ds-anuncio-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--ds-radius-2);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ds-anuncio-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ds-anuncio-modal__close svg {
  width: 20px;
  height: 20px;
}

/* Body */
.ds-anuncio-modal__body {
  padding: var(--ds-space-5);
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

/* Form */
.ds-anuncio-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

.ds-anuncio-form__field {
  width: 100%;
  padding: var(--ds-space-3);
  background: var(--ds-field-bg);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-2);
  font-size: var(--ds-body-md-size);
  color: var(--ds-text-primary);
  font-family: var(--ds-font-family);
  transition: border-color 0.2s ease;
}

.ds-anuncio-form__field:focus {
  outline: none;
  border-color: var(--ds-interactive-primary);
  box-shadow: var(--ds-focus-ring);
}

.ds-anuncio-form__field::placeholder {
  color: var(--ds-text-placeholder);
}

.ds-anuncio-form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit */
.ds-anuncio-form__submit {
  width: 100%;
  padding: var(--ds-space-3);
  background: var(--ds-interactive-primary);
  border: none;
  border-radius: var(--ds-radius-2);
  color: white;
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  font-family: var(--ds-font-family);
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-4);
}

.ds-anuncio-form__submit:hover {
  background: var(--ds-interactive-primary-hover);
}

.ds-anuncio-form__submit:disabled {
  background: var(--ds-border-subtle);
  cursor: not-allowed;
}

.ds-anuncio-form__submit svg {
  width: 16px;
  height: 16px;
}

/* Message */
.ds-anuncio-form__message {
  font-size: var(--ds-body-sm-size);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-2);
  margin-top: var(--ds-space-3);
  display: none;
}

.ds-anuncio-form__message.is-visible {
  display: block;
}

.ds-anuncio-form__message.is-success {
  background: var(--ds-support-success-bg);
  color: var(--ds-support-success);
}

.ds-anuncio-form__message.is-error {
  background: var(--ds-support-error-bg);
  color: var(--ds-support-error);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .ds-cta-banner__content {
    flex-direction: column;
    text-align: center;
    gap: var(--ds-space-4);
  }
  .ds-cta-banner__title {
    font-size: var(--ds-heading-sm-size);
  }
  .ds-cta-banner__action {
    width: 100%;
  }
  .ds-cta-banner__btn {
    width: 100%;
    justify-content: center;
  }
  .ds-anuncio-modal__container {
    max-height: 95vh;
  }
  .ds-anuncio-modal__body {
    max-height: calc(95vh - 150px);
  }
}
/* Prevent body scroll when modal is open */
body.ds-modal-open {
  overflow: hidden;
}

/* top 5 components */
/* design-system/components/_lightbox.scss
   ============================================================
   Lightbox / Image Gallery (Carbon-ish)
   - galeria de fotos responsiva
   - modal fullscreen para visualização
   - navegação entre imagens
   - thumbnails
   ============================================================ */
:root {
  --ds-lightbox-overlay: rgba(0, 0, 0, 0.95);
  --ds-lightbox-close-bg: rgba(255, 255, 255, 0.1);
  --ds-lightbox-close-hover: rgba(255, 255, 255, 0.2);
  --ds-lightbox-nav-bg: rgba(0, 0, 0, 0.5);
  --ds-lightbox-nav-hover: rgba(0, 0, 0, 0.7);
  --ds-lightbox-thumb-size: 80px;
  --ds-lightbox-thumb-gap: 12px;
}

/* ============================================================
   Gallery Grid
   ============================================================ */
.ds-gallery {
  display: grid;
  gap: var(--ds-space-3);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ds-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.ds-gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ds-gallery--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .ds-gallery--3,
  .ds-gallery--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .ds-gallery {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Gallery Item
   ============================================================ */
.ds-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--ds-radius-3);
  cursor: pointer;
  background: var(--ds-gray-100);
}

.ds-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ds-gallery__item:hover .ds-gallery__img {
  transform: scale(1.05);
}

.ds-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--ds-space-3);
}

.ds-gallery__item:hover .ds-gallery__overlay {
  opacity: 1;
}

.ds-gallery__caption {
  color: white;
  font-size: 13px;
  font-weight: var(--ds-font-weight-medium);
}

/* Badge de quantidade */
.ds-gallery__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: var(--ds-radius-pill);
  font-size: 12px;
  font-weight: var(--ds-font-weight-semibold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-gallery__badge-icon {
  width: 14px;
  height: 14px;
}

/* ============================================================
   Lightbox Modal
   ============================================================ */
.ds-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ds-lightbox-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ds-lightbox.is-open {
  display: flex;
  opacity: 1;
}

/* ============================================================
   Lightbox Content
   ============================================================ */
.ds-lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 120px 120px;
}

@media (max-width: 768px) {
  .ds-lightbox__content {
    padding: 60px 20px 100px;
  }
}
/* ============================================================
   Main Image
   ============================================================ */
.ds-lightbox__image-wrap {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: var(--ds-radius-3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Close Button
   ============================================================ */
.ds-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--ds-lightbox-close-bg);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ds-lightbox__close:hover {
  background: var(--ds-lightbox-close-hover);
}

.ds-lightbox__close-icon {
  width: 24px;
  height: 24px;
}

/* ============================================================
   Navigation Arrows
   ============================================================ */
.ds-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--ds-lightbox-nav-bg);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.ds-lightbox__nav:hover {
  background: var(--ds-lightbox-nav-hover);
}

.ds-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ds-lightbox__nav--prev {
  left: 20px;
}

.ds-lightbox__nav--next {
  right: 20px;
}

.ds-lightbox__nav-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .ds-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .ds-lightbox__nav--prev {
    left: 10px;
  }
  .ds-lightbox__nav--next {
    right: 10px;
  }
}
/* ============================================================
   Caption / Counter
   ============================================================ */
.ds-lightbox__info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  max-width: 90%;
}

.ds-lightbox__counter {
  font-size: 14px;
  font-weight: var(--ds-font-weight-medium);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.ds-lightbox__caption {
  font-size: 16px;
  font-weight: var(--ds-font-weight-medium);
}

/* ============================================================
   Thumbnails
   ============================================================ */
.ds-lightbox__thumbs {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--ds-lightbox-thumb-gap);
  max-width: 90%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px;
  /* Scrollbar customizado */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.ds-lightbox__thumbs::-webkit-scrollbar {
  height: 4px;
}

.ds-lightbox__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.ds-lightbox__thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.ds-lightbox__thumb {
  flex-shrink: 0;
  width: var(--ds-lightbox-thumb-size);
  height: var(--ds-lightbox-thumb-size);
  border-radius: var(--ds-radius-2);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.ds-lightbox__thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.ds-lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--ds-blue-50);
}

.ds-lightbox__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Esconder thumbs em mobile */
@media (max-width: 768px) {
  .ds-lightbox__thumbs {
    display: none;
  }
}
/* ============================================================
   Loading State
   ============================================================ */
.ds-lightbox__loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
}

/* ============================================================
   Keyboard Navigation Hint
   ============================================================ */
.ds-lightbox__hint {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  display: flex;
  gap: 12px;
}

.ds-lightbox__hint-key {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
}

@media (max-width: 768px) {
  .ds-lightbox__hint {
    display: none;
  }
}
/* design-system/components/_accordion.scss
   ============================================================
   Accordion (Carbon-ish)
   - expandir/colapsar conteúdo
   - múltiplos itens
   - animação suave
   ============================================================ */
:root {
  --ds-accordion-border: var(--ds-border-subtle);
  --ds-accordion-bg: var(--ds-layer-01);
  --ds-accordion-hover: var(--ds-layer-02);
  --ds-accordion-header-padding: var(--ds-space-4);
  --ds-accordion-content-padding: var(--ds-space-4);
  --ds-accordion-icon-size: 20px;
  --ds-accordion-icon-color: var(--ds-text-secondary);
}

/* ============================================================
   Accordion Container
   ============================================================ */
.ds-accordion {
  border: 1px solid var(--ds-accordion-border);
  border-radius: var(--ds-radius-3);
  overflow: hidden;
}

.ds-accordion--flush {
  border: 0;
  border-radius: 0;
}

/* ============================================================
   Accordion Item
   ============================================================ */
.ds-accordion__item {
  border-bottom: 1px solid var(--ds-accordion-border);
}

.ds-accordion__item:last-child {
  border-bottom: 0;
}

.ds-accordion--flush .ds-accordion__item {
  border-bottom: 1px solid var(--ds-accordion-border);
}

/* ============================================================
   Accordion Header (Button)
   ============================================================ */
.ds-accordion__header {
  width: 100%;
  background: var(--ds-accordion-bg);
  border: 0;
  padding: var(--ds-accordion-header-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.ds-accordion__header:hover {
  background: var(--ds-accordion-hover);
}

.ds-accordion__header:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ds-blue-60);
}

/* ============================================================
   Header Content
   ============================================================ */
.ds-accordion__title {
  flex: 1;
  font-size: var(--ds-body-md-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
}

.ds-accordion__subtitle {
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-secondary);
  margin-top: 4px;
}

/* ============================================================
   Icon (Chevron)
   ============================================================ */
.ds-accordion__icon {
  width: var(--ds-accordion-icon-size);
  height: var(--ds-accordion-icon-size);
  color: var(--ds-accordion-icon-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ds-accordion__item.is-open .ds-accordion__icon {
  transform: rotate(180deg);
}

/* ============================================================
   Content Panel
   ============================================================ */
.ds-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ds-accordion__item.is-open .ds-accordion__panel {
  max-height: 2000px; /* Ajustar conforme necessário */
}

.ds-accordion__content {
  padding: var(--ds-accordion-content-padding);
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  line-height: 1.6;
}

/* Adicionar border top quando aberto */
.ds-accordion__item.is-open .ds-accordion__content {
  border-top: 1px solid var(--ds-accordion-border);
}

/* ============================================================
   Variants
   ============================================================ */
/* Compact */
.ds-accordion--compact .ds-accordion__header {
  padding: var(--ds-space-3);
}

.ds-accordion--compact .ds-accordion__content {
  padding: var(--ds-space-3);
}

.ds-accordion--compact .ds-accordion__title {
  font-size: var(--ds-body-sm-size);
}

/* Large */
.ds-accordion--large .ds-accordion__header {
  padding: var(--ds-space-5);
}

.ds-accordion--large .ds-accordion__content {
  padding: var(--ds-space-5);
}

.ds-accordion--large .ds-accordion__title {
  font-size: 18px;
}

/* ============================================================
   With Icon/Badge
   ============================================================ */
.ds-accordion__header-left {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  flex: 1;
}

.ds-accordion__header-icon {
  width: 24px;
  height: 24px;
  color: var(--ds-blue-60);
  flex-shrink: 0;
}

.ds-accordion__badge {
  margin-left: auto;
  margin-right: var(--ds-space-2);
}

/* design-system/components/_tabs.scss
   ============================================================
   Tabs (Carbon-ish)
   - navegação por abas
   - indicador de aba ativa
   - responsivo
   ============================================================ */
:root {
  --ds-tabs-border: var(--ds-border-subtle);
  --ds-tabs-bg: transparent;
  --ds-tabs-active: var(--ds-blue-60);
  --ds-tabs-item-padding: var(--ds-space-4);
  --ds-tabs-indicator-height: 2px;
}

/* ============================================================
   Tabs Container
   ============================================================ */
.ds-tabs {
  position: relative;
  width: 100%;
}

/* ============================================================
   Tabs List
   ============================================================ */
.ds-tabs__list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ds-tabs-border);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* Scrollbar customizado */
  scrollbar-width: thin;
  scrollbar-color: var(--ds-gray-300) transparent;
}

.ds-tabs__list::-webkit-scrollbar {
  height: 3px;
}

.ds-tabs__list::-webkit-scrollbar-track {
  background: transparent;
}

.ds-tabs__list::-webkit-scrollbar-thumb {
  background: var(--ds-gray-300);
  border-radius: 2px;
}

/* ============================================================
   Tab Item
   ============================================================ */
.ds-tabs__item {
  flex-shrink: 0;
}

.ds-tabs__button {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: var(--ds-tabs-indicator-height) solid transparent;
  padding: var(--ds-tabs-item-padding);
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-medium);
  color: var(--ds-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}

.ds-tabs__button:hover {
  color: var(--ds-text-primary);
  background: color-mix(in srgb, var(--ds-gray-100) 50%, transparent);
}

.ds-tabs__button:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ds-blue-60);
}

/* Active state */
.ds-tabs__button.is-active {
  color: var(--ds-tabs-active);
  border-bottom-color: var(--ds-tabs-active);
}

/* ============================================================
   Tab Icon & Badge
   ============================================================ */
.ds-tabs__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ds-tabs__badge {
  margin-left: 4px;
}

/* ============================================================
   Tab Panels
   ============================================================ */
.ds-tabs__panels {
  padding: var(--ds-space-5) 0;
}

.ds-tabs__panel {
  display: none;
}

.ds-tabs__panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============================================================
   Variants
   ============================================================ */
/* Contained (com fundo) */
.ds-tabs--contained .ds-tabs__list {
  background: var(--ds-layer-02);
  border-radius: var(--ds-radius-3) var(--ds-radius-3) 0 0;
  padding: var(--ds-space-2);
  gap: var(--ds-space-2);
  border-bottom: 0;
}

.ds-tabs--contained .ds-tabs__button {
  border-radius: var(--ds-radius-2);
  border-bottom: 0;
  padding: var(--ds-space-3) var(--ds-space-4);
}

.ds-tabs--contained .ds-tabs__button.is-active {
  background: var(--ds-layer-01);
  box-shadow: var(--ds-shadow-sm);
}

/* Small */
.ds-tabs--sm .ds-tabs__button {
  padding: var(--ds-space-3);
  font-size: 13px;
}

/* Large */
.ds-tabs--lg .ds-tabs__button {
  padding: var(--ds-space-5);
  font-size: var(--ds-body-md-size);
}

/* Full width (tabs ocupam toda largura) */
.ds-tabs--full .ds-tabs__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.ds-tabs--full .ds-tabs__button {
  justify-content: center;
}

/* ============================================================
   Vertical Tabs
   ============================================================ */
.ds-tabs--vertical {
  display: flex;
  gap: var(--ds-space-5);
}

.ds-tabs--vertical .ds-tabs__list {
  flex-direction: column;
  border-bottom: 0;
  border-right: 1px solid var(--ds-tabs-border);
  min-width: 200px;
}

.ds-tabs--vertical .ds-tabs__button {
  justify-content: flex-start;
  border-bottom: 0;
  border-right: var(--ds-tabs-indicator-height) solid transparent;
}

.ds-tabs--vertical .ds-tabs__button.is-active {
  border-right-color: var(--ds-tabs-active);
  border-bottom-color: transparent;
}

.ds-tabs--vertical .ds-tabs__panels {
  flex: 1;
  padding: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .ds-tabs--vertical {
    flex-direction: column;
  }
  .ds-tabs--vertical .ds-tabs__list {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--ds-tabs-border);
    min-width: auto;
    width: 100%;
  }
  .ds-tabs--vertical .ds-tabs__button {
    border-right: 0;
    border-bottom: var(--ds-tabs-indicator-height) solid transparent;
  }
  .ds-tabs--vertical .ds-tabs__button.is-active {
    border-bottom-color: var(--ds-tabs-active);
    border-right-color: transparent;
  }
}
/* design-system/components/_toast.scss
   ============================================================
   Toast / Notification (Carbon-ish)
   - notificações temporárias
   - feedback de ações
   - variantes: success, error, warning, info
   - auto-dismiss
   ============================================================ */
:root {
  --ds-toast-bg: var(--ds-gray-900);
  --ds-toast-text: #ffffff;
  --ds-toast-border-radius: var(--ds-radius-3);
  --ds-toast-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --ds-toast-success: var(--ds-green-600);
  --ds-toast-error: var(--ds-red-600);
  --ds-toast-warning: var(--ds-yellow-500);
  --ds-toast-info: var(--ds-blue-60);
  --ds-toast-width: 400px;
  --ds-toast-padding: var(--ds-space-4);
  --ds-toast-gap: var(--ds-space-3);
}

/* ============================================================
   Toast Container (fixa na tela)
   ============================================================ */
.ds-toast-container {
  position: fixed;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  pointer-events: none;
}

/* Posições */
.ds-toast-container--top-right {
  top: 20px;
  right: 20px;
}

.ds-toast-container--top-left {
  top: 20px;
  left: 20px;
}

.ds-toast-container--top-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.ds-toast-container--bottom-right {
  bottom: 20px;
  right: 20px;
}

.ds-toast-container--bottom-left {
  bottom: 20px;
  left: 20px;
}

.ds-toast-container--bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 480px) {
  .ds-toast-container {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
    transform: none !important;
  }
}
/* ============================================================
   Toast
   ============================================================ */
.ds-toast {
  width: var(--ds-toast-width);
  max-width: calc(100vw - 40px);
  background: var(--ds-toast-bg);
  color: var(--ds-toast-text);
  border-radius: var(--ds-toast-border-radius);
  box-shadow: var(--ds-toast-shadow);
  padding: var(--ds-toast-padding);
  display: flex;
  align-items: flex-start;
  gap: var(--ds-toast-gap);
  pointer-events: auto;
  /* Animação de entrada */
  animation: toastSlideIn 0.3s ease;
}

/* Animações */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.ds-toast.is-dismissing {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
/* ============================================================
   Toast Icon
   ============================================================ */
.ds-toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   Toast Content
   ============================================================ */
.ds-toast__content {
  flex: 1;
  min-width: 0;
}

.ds-toast__title {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  margin-bottom: 4px;
  line-height: 1.4;
}

.ds-toast__message {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ============================================================
   Toast Actions
   ============================================================ */
.ds-toast__actions {
  display: flex;
  gap: var(--ds-space-2);
  margin-top: var(--ds-space-2);
}

.ds-toast__action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--ds-radius-2);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: var(--ds-font-weight-medium);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ds-toast__action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Close Button
   ============================================================ */
.ds-toast__close {
  background: transparent;
  border: 0;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-2);
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.ds-toast__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.ds-toast__close-icon {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Progress Bar (auto-dismiss)
   ============================================================ */
.ds-toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 var(--ds-toast-border-radius) var(--ds-toast-border-radius);
  overflow: hidden;
}

.ds-toast__progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
/* ============================================================
   Variants (Success, Error, Warning, Info)
   ============================================================ */
.ds-toast--success {
  border-left: 4px solid var(--ds-toast-success);
}

.ds-toast--success .ds-toast__icon {
  color: var(--ds-toast-success);
}

.ds-toast--error {
  border-left: 4px solid var(--ds-toast-error);
}

.ds-toast--error .ds-toast__icon {
  color: var(--ds-toast-error);
}

.ds-toast--warning {
  border-left: 4px solid var(--ds-toast-warning);
}

.ds-toast--warning .ds-toast__icon {
  color: var(--ds-toast-warning);
}

.ds-toast--info {
  border-left: 4px solid var(--ds-toast-info);
}

.ds-toast--info .ds-toast__icon {
  color: var(--ds-toast-info);
}

/* ============================================================
   Light variant (fundo branco)
   ============================================================ */
.ds-toast--light {
  background: white;
  color: var(--ds-text-primary);
  border: 1px solid var(--ds-border-subtle);
}

.ds-toast--light .ds-toast__message {
  color: var(--ds-text-secondary);
}

.ds-toast--light .ds-toast__close {
  color: var(--ds-text-secondary);
}

.ds-toast--light .ds-toast__close:hover {
  background: var(--ds-layer-02);
  color: var(--ds-text-primary);
}

.ds-toast--light .ds-toast__action {
  border-color: var(--ds-border-subtle);
  color: var(--ds-text-primary);
}

.ds-toast--light .ds-toast__action:hover {
  background: var(--ds-layer-02);
}

/* ============================================================
   Compact variant
   ============================================================ */
.ds-toast--compact {
  padding: var(--ds-space-3);
}

.ds-toast--compact .ds-toast__title {
  font-size: 13px;
  margin-bottom: 0;
}

.ds-toast--compact .ds-toast__message {
  font-size: 12px;
}

/* design-system/components/_dropdown.scss
   ============================================================
   Dropdown Menu (Carbon-ish)
   - menu suspenso
   - menu do usuário
   - ações contextuais
   ============================================================ */
:root {
  --ds-dropdown-bg: var(--ds-layer-01);
  --ds-dropdown-border: var(--ds-border-subtle);
  --ds-dropdown-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
  --ds-dropdown-radius: var(--ds-radius-3);
  --ds-dropdown-item-hover: var(--ds-layer-02);
  --ds-dropdown-item-padding: var(--ds-space-3);
  --ds-dropdown-width: 220px;
}

/* ============================================================
   Dropdown Container
   ============================================================ */
.ds-dropdown {
  position: relative;
  display: inline-block;
}

/* ============================================================
   Dropdown Trigger
   ============================================================ */
.ds-dropdown__trigger {
  /* O trigger pode ser qualquer elemento (button, link, etc) */
  cursor: pointer;
}

/* ============================================================
   Dropdown Menu
   ============================================================ */
.ds-dropdown__menu {
  position: absolute;
  z-index: 1000;
  min-width: var(--ds-dropdown-width);
  background: var(--ds-dropdown-bg);
  border: 1px solid var(--ds-dropdown-border);
  border-radius: var(--ds-dropdown-radius);
  box-shadow: var(--ds-dropdown-shadow);
  padding: var(--ds-space-2) 0;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.ds-dropdown.is-open .ds-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Posicionamento */
.ds-dropdown__menu--right {
  right: 0;
  top: calc(100% + 8px);
}

.ds-dropdown__menu--left {
  left: 0;
  top: calc(100% + 8px);
}

.ds-dropdown__menu--top {
  bottom: calc(100% + 8px);
  right: 0;
}

.ds-dropdown__menu--center {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  top: calc(100% + 8px);
}

.ds-dropdown.is-open .ds-dropdown__menu--center {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Dropdown Items
   ============================================================ */
.ds-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  padding: var(--ds-dropdown-item-padding) var(--ds-space-4);
  background: transparent;
  border: 0;
  font-size: var(--ds-body-sm-size);
  color: var(--ds-text-primary);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.ds-dropdown__item:hover {
  background: var(--ds-dropdown-item-hover);
}

.ds-dropdown__item:focus {
  outline: none;
  background: var(--ds-dropdown-item-hover);
  box-shadow: inset 0 0 0 2px var(--ds-blue-60);
}

/* Disabled */
.ds-dropdown__item:disabled,
.ds-dropdown__item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ds-dropdown__item:disabled:hover,
.ds-dropdown__item.is-disabled:hover {
  background: transparent;
}

/* ============================================================
   Item Icon
   ============================================================ */
.ds-dropdown__icon {
  width: 18px;
  height: 18px;
  color: var(--ds-text-secondary);
  flex-shrink: 0;
}

.ds-dropdown__item:hover .ds-dropdown__icon {
  color: var(--ds-text-primary);
}

/* ============================================================
   Item Label & Description
   ============================================================ */
.ds-dropdown__label {
  flex: 1;
}

.ds-dropdown__description {
  font-size: 12px;
  color: var(--ds-text-secondary);
  margin-top: 2px;
}

/* ============================================================
   Item Badge/Shortcut
   ============================================================ */
.ds-dropdown__meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--ds-text-secondary);
}

.ds-dropdown__shortcut {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ds-dropdown__key {
  background: var(--ds-layer-02);
  border: 1px solid var(--ds-border-subtle);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: monospace;
  line-height: 1;
}

/* ============================================================
   Divider
   ============================================================ */
.ds-dropdown__divider {
  height: 1px;
  background: var(--ds-dropdown-border);
  margin: var(--ds-space-2) 0;
}

/* ============================================================
   Header/Footer
   ============================================================ */
.ds-dropdown__header,
.ds-dropdown__footer {
  padding: var(--ds-space-2) var(--ds-space-4);
  font-size: 12px;
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ds-dropdown__footer {
  border-top: 1px solid var(--ds-dropdown-border);
  margin-top: var(--ds-space-2);
  padding-top: var(--ds-space-3);
}

/* ============================================================
   User Dropdown (variant)
   ============================================================ */
.ds-dropdown--user .ds-dropdown__header {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-dropdown-border);
  margin-bottom: var(--ds-space-2);
  text-transform: none;
}

.ds-dropdown--user .ds-dropdown__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ds-blue-60);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--ds-font-weight-semibold);
  font-size: 14px;
}

.ds-dropdown--user .ds-dropdown__user-info {
  flex: 1;
  min-width: 0;
}

.ds-dropdown--user .ds-dropdown__user-name {
  font-size: var(--ds-body-sm-size);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-dropdown--user .ds-dropdown__user-email {
  font-size: 12px;
  color: var(--ds-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Danger variant (para ações destrutivas)
   ============================================================ */
.ds-dropdown__item--danger {
  color: var(--ds-red-600);
}

.ds-dropdown__item--danger:hover {
  background: color-mix(in srgb, var(--ds-red-600) 10%, transparent);
}

.ds-dropdown__item--danger .ds-dropdown__icon {
  color: var(--ds-red-600);
}

/* ============================================================
   Compact variant
   ============================================================ */
.ds-dropdown--compact .ds-dropdown__menu {
  min-width: 160px;
}

.ds-dropdown--compact .ds-dropdown__item {
  padding: var(--ds-space-2) var(--ds-space-3);
  font-size: 13px;
}

/* ============================================================
   Chevron indicator (seta no trigger)
   ============================================================ */
.ds-dropdown__chevron {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.ds-dropdown.is-open .ds-dropdown__chevron {
  transform: rotate(180deg);
}

/* ============================================================
   Backdrop (opcional, para fechar ao clicar fora)
   ============================================================ */
.ds-dropdown__backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
  display: none;
}

.ds-dropdown.is-open .ds-dropdown__backdrop {
  display: block;
}

body {
  background-color: var(--ds-background);
  color: var(--ds-text-primary);
}

.container-teste {
  padding: var(--ds-space-6);
}

.card-teste {
  background: var(--ds-layer-01);
  padding: var(--ds-space-4);
  margin-bottom: var(--ds-space-5);
}

body {
  font-family: var(--ds-font-family-base);
  font-size: var(--ds-body-md-size);
  line-height: var(--ds-line-height-normal);
}

h1 {
  font-size: var(--ds-heading-xl-size);
  font-weight: var(--ds-font-weight-bold);
}

h2 {
  font-size: var(--ds-heading-lg-size);
  font-weight: var(--ds-font-weight-semibold);
}

h3 {
  font-size: var(--ds-heading-md-size);
  font-weight: var(--ds-font-weight-semibold);
}

p {
  font-size: var(--ds-body-md-size);
}

/*# sourceMappingURL=ds.css.map */
