/**
 * DVC Rental Deals — public company stylesheet / design tokens
 * Source of truth for AI tools and humans: https://styles.dvcrentaldeals.com/
 * Mirror of app/globals.css primitives (without Tailwind).
 * When you change marketplace UI tokens, update this file too.
 */

:root {
  --background: #09090b;
  --foreground: #e4e4e7;
  --color-brand: #10b981;
  --color-brand-strong: #059669;
  --color-brand-soft: #d1fae5;
  --color-surface: #18181b;
  --color-surface-strong: #09090b;
  --color-border: #27272a;
  --color-muted: #a1a1aa;
  --color-danger: #f87171;
  --color-warning: #fbbf24;
  --color-success: #34d399;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.listing-card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.ui-page-shell {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  padding: 1.5rem 1rem;
}

.ui-page-container {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.ui-page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ui-eyebrow {
  color: #6ee7b7;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-page-title {
  margin-top: 0.5rem;
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 650;
  line-height: 1.15;
}

.ui-section-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
}

.ui-card-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.ui-body-text {
  color: #d4d4d8;
  font-size: 1rem;
  line-height: 1.65;
}

.ui-muted-text {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.ui-meta-text {
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ui-label {
  color: #e4e4e7;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.ui-helper-text {
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1.55;
}

.ui-error-text {
  color: #fecaca;
  font-size: 1rem;
  line-height: 1.55;
}

.ui-section {
  margin-top: 1.5rem;
}

.ui-panel {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  padding: 1.25rem;
}

.ui-panel-strong {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface-strong);
  padding: 1.25rem;
}

.ui-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  padding: 1rem;
}

.ui-button {
  align-items: center;
  border-radius: 0.5rem;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 650;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ui-button:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}

.ui-button-primary {
  background: var(--color-brand);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #042f2e;
}

.ui-button-primary:hover {
  background: #34d399;
}

.ui-button-secondary {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #09090b;
}

.ui-button-secondary:hover {
  background: #e4e4e7;
}

.ui-button-outline {
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.ui-button-outline:hover {
  border-color: #6ee7b7;
  color: #a7f3d0;
}

.ui-button-disabled,
.ui-button:disabled {
  background: #27272a;
  border-color: #3f3f46;
  color: #71717a;
  cursor: not-allowed;
}

.ui-input,
.ui-select {
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  width: 100%;
}

.ui-input::placeholder {
  color: #71717a;
}

.ui-input:focus,
.ui-select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  outline: none;
}

.ui-textarea {
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 7rem;
  padding: 0.625rem 0.75rem;
  resize: vertical;
  width: 100%;
}

.ui-textarea::placeholder {
  color: #71717a;
}

.ui-textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  outline: none;
}

.ui-badge {
  align-items: center;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.35rem 0.7rem;
}

.ui-badge-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.ui-badge-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.ui-badge-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.ui-badge-neutral {
  background: rgba(113, 113, 122, 0.18);
  border-color: rgba(161, 161, 170, 0.32);
  color: #d4d4d8;
}

.ui-empty-state,
.ui-error-state {
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.ui-empty-state {
  background: #09090b;
  border: 1px dashed #3f3f46;
  color: #a1a1aa;
}

.ui-error-state {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.ui-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.ui-admin-table {
  border-collapse: collapse;
  color: #d4d4d8;
  font-size: 1rem;
  min-width: 100%;
  text-align: left;
}

.ui-admin-table thead {
  background: #09090b;
  color: #a1a1aa;
}

.ui-admin-table th {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
}

.ui-admin-table td {
  border-top: 1px solid var(--color-border);
  padding: 0.875rem 1rem;
  vertical-align: top;
}

.ui-detail-grid {
  display: grid;
  gap: 1rem;
}

.ui-detail-label {
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ui-detail-value {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .ui-page-shell {
    padding: 2rem 1.5rem;
  }

  .ui-page-title {
    font-size: 2.25rem;
  }

  .ui-panel,
  .ui-panel-strong {
    padding: 1.5rem;
  }

  .ui-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ui-page-header {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }
}

.dual-range-input {
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.dual-range-input::-webkit-slider-runnable-track {
  appearance: none;
  background: transparent;
}

.dual-range-input::-moz-range-track {
  background: transparent;
  border: 0;
}

.dual-range-input::-webkit-slider-thumb {
  appearance: none;
  height: 44px;
  width: 28px;
  cursor: pointer;
  pointer-events: auto;
}

.dual-range-input::-moz-range-thumb {
  height: 44px;
  width: 28px;
  cursor: pointer;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

/* Task 313 — Default Browse icon toolbar
   Active: teal outer ring → black separator → green center → white icon
   Outer disc diameter is fixed so the toolbar footprint does not jump. */
:root {
  --browse-toolbar-teal: #00e5c0;
  --browse-toolbar-green: var(--color-brand, #10b981);
  --browse-toolbar-black: #000000;
  --browse-toolbar-disc: 4.25rem;
  --browse-toolbar-teal-pad: 0.28rem;
  --browse-toolbar-black-pad: 0.28rem;
  --browse-toolbar-icon: 1.75rem;
}

.browse-icon-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .browse-icon-toolbar {
    justify-content: flex-start;
    gap: 1rem 1.25rem;
  }
}

.browse-toolbar-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.5rem;
  padding: 0.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #e4e4e7;
  -webkit-tap-highlight-color: transparent;
}

.browse-toolbar-item:focus {
  outline: none;
}

.browse-toolbar-item:focus-visible .browse-toolbar-disc {
  outline: 2px solid var(--browse-toolbar-teal);
  outline-offset: 3px;
}

/* Fixed outer footprint */
.browse-toolbar-disc {
  display: block;
  width: var(--browse-toolbar-disc);
  height: var(--browse-toolbar-disc);
  border-radius: 9999px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Layer stack always present; inactive collapses teal/black padding to 0 */
.browse-toolbar-teal {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  transition: padding 0.15s ease, background-color 0.15s ease;
}

.browse-toolbar-black {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  transition: padding 0.15s ease, background-color 0.15s ease;
}

.browse-toolbar-green {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  box-sizing: border-box;
  background: var(--browse-toolbar-green);
  transition: background-color 0.15s ease;
}

.browse-toolbar-icon {
  width: var(--browse-toolbar-icon);
  height: var(--browse-toolbar-icon);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  /* Keep glyph size stable between states */
  flex-shrink: 0;
}

.browse-toolbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  color: #d4d4d8;
  max-width: 5.5rem;
}

/*
  Active/open:
  - teal outer ring (padding on teal shell with teal background)
  - black separator (padding on black shell with black background)
  - green center fill
  - white icon (unchanged size)
  Outer disc size stays --browse-toolbar-disc.
*/
.browse-toolbar-item[data-active="true"] .browse-toolbar-teal,
.browse-toolbar-disc[data-active="true"] .browse-toolbar-teal {
  padding: var(--browse-toolbar-teal-pad);
  background: var(--browse-toolbar-teal);
}

.browse-toolbar-item[data-active="true"] .browse-toolbar-black,
.browse-toolbar-disc[data-active="true"] .browse-toolbar-black {
  padding: var(--browse-toolbar-black-pad);
  background: var(--browse-toolbar-black);
}

.browse-toolbar-item[data-active="true"] .browse-toolbar-green,
.browse-toolbar-disc[data-active="true"] .browse-toolbar-green {
  background: var(--browse-toolbar-green);
}

.browse-toolbar-item[data-active="true"] .browse-toolbar-label {
  color: #ffffff;
}

.browse-toolbar-panel {
  margin-top: 1rem;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid #3f3f46;
  background: #09090b;
  padding: 1rem;
}

.browse-toolbar-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: #ffffff;
}
