/* ===================================================================
   Property Wharf - List View Styles (Alphabetical Directory)
   =================================================================== */

.list-view-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===================================================================
   List Controls & Filter Toolbar
   =================================================================== */
.list-toolbar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box-wrap input {
  width: 100%;
  padding-left: 38px;
  height: 42px;
  font-size: 14px;
}

.sort-group-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sort-select {
  height: 42px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-card);
  padding: 0 14px;
}

/* Property Type Filter Pills */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.filter-pills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.filter-pill.active {
  background-color: var(--accent-teal);
  color: #060d17;
  border-color: var(--accent-teal);
}

/* Custom User Category Pills */
.category-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill-cat {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-pill-cat:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.filter-pill-cat.active {
  background-color: var(--accent-gold);
  color: #060d17;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.btn-add-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-teal);
  background-color: transparent;
  border: 1px dashed var(--accent-teal);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-add-cat-pill:hover {
  background-color: rgba(0, 229, 176, 0.12);
  border-style: solid;
}

.tags-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.property-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.02em;
}

.property-category-tag .cat-prefix {
  opacity: 0.7;
  font-weight: 400;
}

/* ===================================================================
   List Summary & Stack
   =================================================================== */
.list-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.count-badge {
  font-size: 13px;
  color: var(--text-secondary);
}

.count-badge strong {
  color: var(--accent-teal);
}

.property-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===================================================================
   Alphabetical Property Card Row
   =================================================================== */
.property-list-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.property-list-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
}

/* Left Alphabetical Letter Marker */
.card-left-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.alpha-index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Icon column */
.card-icon-col {
  flex-shrink: 0;
}

.type-pixel-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content column */
.card-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.property-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-list-card:hover .property-title {
  color: var(--accent-teal);
}

.property-address-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.property-address-row .address-icon {
  color: var(--accent-gold);
}

.property-desc-snippet {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Value column */
.card-value-col {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.val-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.val-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.link-website {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent-teal);
  font-weight: 500;
}

.link-website:hover {
  text-decoration: underline;
}

.no-link-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* Actions column */
.card-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
}

.btn-action-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all var(--transition-fast);
}

.btn-action-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
}

.btn-expand:hover {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.btn-delete:hover {
  color: var(--accent-coral);
  border-color: var(--accent-coral);
}

/* Empty State */
.harbor-empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
}

.empty-text {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .property-list-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .card-value-col {
    align-items: flex-start;
    text-align: left;
    min-width: 120px;
  }
  .card-actions-col {
    width: 100%;
    justify-content: flex-end;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
  }
}
